add normal mode

This commit is contained in:
Harvey committed 2020-05-15 19:11:03 +08:00
1 parent 72937ab1ed
commit 2650acc953
6 files changed
+33 -30

No files matched your search

+2 -6
View File
@@ -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', {