This commit is contained in:
Harvey Zack committed 2023-04-22 19:00:25 +08:00
1 parent 7fe80943a9
commit 7c8a3c2c7d
18 files changed
+37 -55

No files matched your search

+2 -7
View File
@@ -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());
}
}
+1 -3
View File
@@ -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) {