Skip to content

Conversation

@esseb
Copy link
Contributor

@esseb esseb commented Mar 20, 2016

Call event.preventDefault() to prevent unwanted scrolling.

@esseb
Copy link
Contributor Author

esseb commented Mar 20, 2016

https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_slider_role recommends supporting Up and Down also to interact with the slider, and is also how <input type="range"> works in most browsers today.

I also call event.preventDefault() to prevent unwanted scrolling, which is more likely to happen when the user presses up or down, but could also happen with left and right on a wide page.

Call event.preventDefault() to prevent unwanted scrolling.
@davidchin davidchin merged commit 75f90f8 into davidchin:master Apr 10, 2016
@davidchin
Copy link
Owner

Thanks for your work @esseb!

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.

2 participants