diff --git a/src/components/flow/Cell/index.tsx b/src/components/flow/Cell/index.tsx index b5db69bb..f21d2326 100644 --- a/src/components/flow/Cell/index.tsx +++ b/src/components/flow/Cell/index.tsx @@ -46,6 +46,11 @@ const Cell: FC = ({ checkIfVisible(); }, []); + useEffect(() => { + // recalc visibility of other elements + window.dispatchEvent(new CustomEvent('scroll')); + }, [flow]); + useEffect(() => { window.addEventListener('scroll', checkIfVisibleDebounced);