1
0
Fork 0
mirror of synced 2024-09-20 03:08:18 +12:00

Fix variable name error in indicator sets

This commit is contained in:
Andrew Kingston 2024-08-13 09:19:16 +01:00
parent 73cc871a5e
commit 78953848bb
No known key found for this signature in database

View file

@ -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
}