diff --git a/packages/client/src/components/preview/IndicatorSet.svelte b/packages/client/src/components/preview/IndicatorSet.svelte index dfea20a45f..4af1224622 100644 --- a/packages/client/src/components/preview/IndicatorSet.svelte +++ b/packages/client/src/components/preview/IndicatorSet.svelte @@ -67,14 +67,14 @@ } const createIntersectionCallback = idx => entries => { - if (callbackCount >= observers.length) { + if (callbackCount >= intersectionObservers.length) { return } nextState.indicators[idx].visible = nextState.indicators[idx].insideModal || nextState.indicators[idx].insideSidePanel || entries[0].isIntersecting - if (++callbackCount === observers.length) { + if (++callbackCount === intersectionObservers.length) { state = nextState updating = false }