修复弹幕自适应

This commit is contained in:
zhw2590582 committed 2020-05-16 10:46:33 +08:00
1 parent b70c11ede6
commit 35ac59dc45
8 files changed
+44 -38

No files matched your search

+1 -4
View File
@@ -8,10 +8,7 @@ export default function resizeInit(art, events) {
player.autoSize = option.autoSize;
}
player.aspectRatioReset = true;
art.emit('resize', {
width: player.width,
height: player.height,
});
art.emit('resize');
}, 500);
events.proxy(window, ['orientationchange', 'resize'], () => {