mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 00:31:20 -08:00
isInViewport添加offset
This commit is contained in:
1 parent
d73666475c
commit
2ea92640aa
4 files changed
+9
-8
No files matched your search
@@ -8,7 +8,7 @@ export default function viewInit(art, events) {
|
||||
} = art;
|
||||
|
||||
const scrollFn = throttle(() => {
|
||||
art.emit('view', isInViewport($container));
|
||||
art.emit('view', isInViewport($container, 50));
|
||||
}, 200);
|
||||
|
||||
events.proxy(window, 'scroll', () => {
|
||||
|
||||
Reference in new issue
Block a user