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

Adds the new event type "wheel" introduced by FF17 #46

Closed
wants to merge 1 commit into from

Conversation

ZalemCitizen
Copy link

Added the new event type "wheel" to the table of event type on line 15

EDIT: to avoid for now, this worked, but does not anymore

Added the new event type "wheel" to the table of event type on line 15
@hirbod
Copy link

hirbod commented Dec 29, 2012

wheel does not work anymore / or at the moment.

try this instead:

var types = ['DOMMouseScroll', 'mousewheel', 'MozMousePixelScroll', 'wheel'];

The DOM MozMousePixelScroll event is fired asynchronously when mouse wheel or similar device is operated. It's represented by the MouseScrollEvent interface.

If you want to prevent the default action of mouse wheel events on Gecko 17 (Firefox 17) or later, you need to call preventDefault() of wheel because if two or more wheel events caused only 1 pixel scroll, this event wouldn't be fired.

@brandonaaron
Copy link
Contributor

Thanks. This is now resolved in 3.1.0.

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.

3 participants