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

Multiple instances on a page trigger window scroll events when clicking between them #641

Closed
swixpop opened this issue Sep 29, 2017 · 1 comment

Comments

@swixpop
Copy link

swixpop commented Sep 29, 2017

See codepen below. Open the console in devtools. Scroll down so both sliders are visible. Click in one slider, then in the other. Each time, a window scroll event is logged.

Test case: https://codepen.io/anon/pen/XegKLG

@desandro
Copy link
Member

This behavior is intended. Similar to #76 (comment)

This behavior is actually a feature of keyboard accessibility. By clicking/tapping on a gallery, it adds focus to its element.

Flickity v1.1.1 add behavior to capture that scroll and reset the window position so there would be no change in scroll position. The scroll event would like still trigger.

@desandro desandro closed this as completed Feb 9, 2018
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

2 participants