|
@@ -18,7 +18,7 @@
|
|
const rootMargin = `${top}px ${right}px ${bottom}px ${left}px`;
|
|
const rootMargin = `${top}px ${right}px ${bottom}px ${left}px`;
|
|
const observer = new IntersectionObserver(
|
|
const observer = new IntersectionObserver(
|
|
(entries) => {
|
|
(entries) => {
|
|
- intersecting = entries[0].isIntersecting;
|
|
|
|
|
|
+ intersecting = entries.some((entry) => entry.isIntersecting);
|
|
if (!intersecting) {
|
|
if (!intersecting) {
|
|
dispatch('hidden', container);
|
|
dispatch('hidden', container);
|
|
}
|
|
}
|