Skip to content

Commit 11ed537

Browse files
committed
pref: add throttle to IntersectionObserver
1 parent 44b6050 commit 11ed537

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/lazy-load.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class LazyLoader {
1919
const entry = entries[0]
2020
const DELAY_TIME = 260
2121

22-
if (entry.intersectionRatio >= 0) {
22+
if (entry.intersectionRatio > 0) {
2323
this.timer = setTimeout(() => {
2424
this.handler()
2525
this.rended = true

0 commit comments

Comments
 (0)