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

Fixed case in FF when evntObj.deltaY is zero; #70

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

oxala
Copy link

@oxala oxala commented Nov 2, 2016

Found an edge-case when after some intensive scrolling in FireFox - evntObj.deltaY at one point is zero. And since evntObj.wheelDelta is undefined, the wheelDelta variable becomes NaN. Which breaks further scrolling (as visible from screenshots below).

image

image

The fix added - falling back on zero, if any of evntObj.deltaY || evntObj.detail || (-1 / 3 * evntObj.wheelDelta) is falsy.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 53.498% when pulling ab9d1f3 on oxala:master into 93c8a51 on wieringen:master.

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