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

autoplay continues in safari when slideshow is outside of viewport #1298

Open
pirco opened this issue Feb 19, 2024 · 0 comments
Open

autoplay continues in safari when slideshow is outside of viewport #1298

pirco opened this issue Feb 19, 2024 · 0 comments

Comments

@pirco
Copy link

pirco commented Feb 19, 2024

I have a wraparound flickity slideshow with adaptiveHeight and autoPlay enabled.

on Chrome, when I scroll past the slideshow (with slideshow now outside/above the viewport), the slideshow stops autoscrolling (expected).
but on Safari (mac, Version 17.2.1 (19617.1.17.11.12)), the slideshow continues to autoplay, causing the content below the slideshow (the content that is visible in the viewport of the browser) to shift up and down to accommodate the adaptive height of the slideshow. how can I stop the slideshow from playing in safari when it's not in the viewport?

Test case: https://codepen.io/pirco/pen/bGZZyWw

flickity_safari_autoplay_content_jump.mov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant