Fix variable name error in indicator sets
This commit is contained in:
parent
73cc871a5e
commit
78953848bb
|
@ -67,14 +67,14 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const createIntersectionCallback = idx => entries => {
|
const createIntersectionCallback = idx => entries => {
|
||||||
if (callbackCount >= observers.length) {
|
if (callbackCount >= intersectionObservers.length) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
nextState.indicators[idx].visible =
|
nextState.indicators[idx].visible =
|
||||||
nextState.indicators[idx].insideModal ||
|
nextState.indicators[idx].insideModal ||
|
||||||
nextState.indicators[idx].insideSidePanel ||
|
nextState.indicators[idx].insideSidePanel ||
|
||||||
entries[0].isIntersecting
|
entries[0].isIntersecting
|
||||||
if (++callbackCount === observers.length) {
|
if (++callbackCount === intersectionObservers.length) {
|
||||||
state = nextState
|
state = nextState
|
||||||
updating = false
|
updating = false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue