increase threshold for mouse wheel speed limiting
This commit is contained in:
parent
2f2cddd173
commit
62904badce
1 changed files with 3 additions and 3 deletions
|
|
@ -174,10 +174,10 @@ exports.addMouseWheelListener = function(el, callback) {
|
|||
|
||||
// some versions of Safari (e.g. 5.0.5) report insanely high
|
||||
// scroll values. These browsers require a higher factor
|
||||
if (e.wheelDeltaY > max)
|
||||
max = e.wheelDeltaY
|
||||
if (Math.abs(e.wheelDeltaY) > max)
|
||||
max = Math.abs(e.wheelDeltaY)
|
||||
|
||||
if (max > 1000)
|
||||
if (max > 5000)
|
||||
factor = 400;
|
||||
else
|
||||
factor = 8;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue