Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix image gallery scrolling in editor on Safari
Safari (tested with 17.3) also triggers the observer callback for children whose `intersectionRatio` is below the threshold. This only happens inside the editor iframe. In the preview or published entries, the behavior matches Chrome and Firefox. We need to double check `intersectionRatio` ourselves to prevent invoking the `onVisibleIndexChange` callback for all of the children, which leads to a broken image gallery. REDMINE-20635
- Loading branch information