Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix image gallery scrolling in editor on Safari #2088

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

tf
Copy link
Member

@tf tf commented Mar 8, 2024

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

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
@tf tf added this to the v17.1 milestone Mar 8, 2024
@tf tf merged commit a019f5c into codevise:master Mar 8, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant