mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 00:31:20 -08:00
prettier
This commit is contained in:
1 parent
7fe80943a9
commit
7c8a3c2c7d
18 files changed
+37
-55
No files matched your search
@@ -12,13 +12,8 @@ export default function resizeInit(art, events) {
|
||||
art.emit('resize');
|
||||
}, art.constructor.RESIZE_TIME);
|
||||
|
||||
events.proxy(window, ['orientationchange', 'resize'], () => {
|
||||
resizeFn();
|
||||
});
|
||||
|
||||
events.proxy(window, ['orientationchange', 'resize'], () => resizeFn());
|
||||
if (screen && screen.orientation && screen.orientation.onchange) {
|
||||
events.proxy(screen.orientation, 'change', () => {
|
||||
resizeFn();
|
||||
});
|
||||
events.proxy(screen.orientation, 'change', () => resizeFn());
|
||||
}
|
||||
}
|
||||
@@ -11,9 +11,7 @@ export default function viewInit(art, events) {
|
||||
art.emit('view', isInViewport($container, constructor.SCROLL_GAP));
|
||||
}, constructor.SCROLL_TIME);
|
||||
|
||||
events.proxy(window, 'scroll', () => {
|
||||
scrollFn();
|
||||
});
|
||||
events.proxy(window, 'scroll', () => scrollFn());
|
||||
|
||||
art.on('view', (state) => {
|
||||
if (option.autoMini) {
|
||||
|
||||
Reference in new issue
Block a user