codevise / pageflow

Multimedia story telling for the web.
http://pageflow.io
MIT License
688 stars 125 forks source link

Fix image gallery scrolling in editor on Safari #2088

Closed tf closed 5 months ago

tf commented 5 months ago

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