mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 17:01:20 -08:00
add normal mode
This commit is contained in:
1 parent
72937ab1ed
commit
2650acc953
6 files changed
+33
-30
No files matched your search
@@ -4,12 +4,8 @@ export default function resizeInit(art, events) {
|
||||
const { option, player } = art;
|
||||
|
||||
const resizeFn = throttle(() => {
|
||||
if (option.autoSize) {
|
||||
if (!player.fullscreen && !player.fullscreenWeb && !player.fullscreenRotate && !player.pip && !player.min) {
|
||||
player.autoSize = true;
|
||||
} else {
|
||||
player.autoSize = false;
|
||||
}
|
||||
if (player.normal) {
|
||||
player.autoSize = option.autoSize;
|
||||
}
|
||||
player.aspectRatioReset = true;
|
||||
art.emit('resize', {
|
||||
|
||||
Reference in new issue
Block a user