diff --git a/entry_types/scrolled/package/src/contentElements/imageGallery/useIntersectionObserver.js b/entry_types/scrolled/package/src/contentElements/imageGallery/useIntersectionObserver.js index 792a7fc15..8cfd83a3b 100644 --- a/entry_types/scrolled/package/src/contentElements/imageGallery/useIntersectionObserver.js +++ b/entry_types/scrolled/package/src/contentElements/imageGallery/useIntersectionObserver.js @@ -14,7 +14,7 @@ export function useIntersectionObserver({threshold, onVisibleIndexChange}) { (child) => child === entry.target ); - if (entry.isIntersecting) { + if (entry.isIntersecting && entry.intersectionRatio >= threshold) { onVisibleIndexChange(entryIndex); } });