diff --git a/src/observers.ts b/src/observers.ts index 2a297e2b..c70cb4c1 100644 --- a/src/observers.ts +++ b/src/observers.ts @@ -57,7 +57,7 @@ function createObserver(options: IntersectionObserverInit) { // -Firefox ignores `threshold` when considering `isIntersecting`, so it will never be false again if `threshold` is > 0 const inView = entry.isIntersecting && - observer.thresholds.some( + (observer.thresholds ?? [0]).some( (threshold) => entry.intersectionRatio >= threshold, );