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

Fix deltaFactor for old webkits #93

Closed
wants to merge 1 commit into from
Closed

Conversation

chestozo
Copy link

When delta is more than or equal to 120 - we devide it by 40 to get delta in pixels.
If we check only for delta being equal to 120 we get deltaFactor equal to 240 sometimes.
https://www.monosnap.com/file/OXQ113pLoDnYCFDbiQDhZO0ceKXzfE

When delta is more than or equal to 120 - we devide it by 40 to get delta in pixels.
@brandonaaron
Copy link
Contributor

I forget that wheelDelta property doesn't always start out at its lowest number like the newer deltaY property seems to do.

@brandonaaron
Copy link
Contributor

I took a slightly different approach to fixing this. I also added a setting to allow people to turn this particular normalizing behavior off. Try out the 3.1.9 release and let me know how it works for you.

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