build all packages

This commit is contained in:
zhw2590582 committed 2021-09-25 19:03:06 +08:00
1 parent 8f68191efc
commit d73666475c
13 files changed
+31 -25

No files matched your search

+2 -2
View File
@@ -1,4 +1,4 @@
import { debounce, isInViewport } from '../utils';
import { throttle, isInViewport } from '../utils';
export default function viewInit(art, events) {
const {
@@ -7,7 +7,7 @@ export default function viewInit(art, events) {
template: { $container },
} = art;
const scrollFn = debounce(() => {
const scrollFn = throttle(() => {
art.emit('view', isInViewport($container));
}, 200);