We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If you use a touchpad, it's very hard not to swipe vertically by a little bit while swiping horizontally. Thus, I think this line:
if (Math.abs(deltaX) > 0 && Math.abs(deltaY) == 0)
should read instead:
if (Math.abs(deltaX) > horzThreshold && Math.abs(deltaY) < vertThreshold)
or, just take the ratio (if you swipe more on horizontal axis than vertical axis):
var horzScale = 1e6; if (Math.abs(deltaX) / Math.abs(deltaY) > horzScale) // This works even if deltaY is zero, since +Inf > any number
The text was updated successfully, but these errors were encountered:
@X-Ryl669 Would you like to make a pull request with the change?
Sorry, something went wrong.
No branches or pull requests
If you use a touchpad, it's very hard not to swipe vertically by a little bit while swiping horizontally.
Thus, I think this line:
should read instead:
or, just take the ratio (if you swipe more on horizontal axis than vertical axis):
The text was updated successfully, but these errors were encountered: