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

Firefox DOMMouseScroll.detail setting #17

Closed
jawa-the-hutt opened this issue Aug 14, 2013 · 1 comment
Closed

Firefox DOMMouseScroll.detail setting #17

jawa-the-hutt opened this issue Aug 14, 2013 · 1 comment

Comments

@jawa-the-hutt
Copy link

I've only tested this with Firefox 22 and 23, but here's the issue.

when using the Mouse scroll it advances the coverflow 3 steps at a time. In digging into this, it seems that the default setting for Firefox's DOMMouseScroll.detail = 3.

FWIW, here's what I changed to get it to work as expected:

The line in the code:
var e = t.detail ? t.detail * -120 : t.wheelDelta,

can be changed to:
var e = t.detail ? (t.detail / 3) * -120 : t.wheelDelta,

and then the coverflow advances normally one picture at a time.

@luwes
Copy link
Owner

luwes commented Sep 16, 2013

Thanks for the feedback! It's pretty hard to keep this consistent across all browsers plus users often configure mouse scroll speed in OS preferences. Great you found a solution!

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

No branches or pull requests

2 participants