Skip to content

Commit

Permalink
Merge pull request #2088 from tf/safari-gallery-fix
Browse files Browse the repository at this point in the history
Fix image gallery scrolling in editor on Safari
  • Loading branch information
tf authored Mar 8, 2024
2 parents 2b49d8a + 94c8adf commit a019f5c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function useIntersectionObserver({threshold, onVisibleIndexChange}) {
(child) => child === entry.target
);

if (entry.isIntersecting) {
if (entry.isIntersecting && entry.intersectionRatio >= threshold) {
onVisibleIndexChange(entryIndex);
}
});
Expand Down

0 comments on commit a019f5c

Please sign in to comment.