removed scrolling threshold for older safari versions, cause it make working with apple mice less pleasant
This commit is contained in:
parent
aad7aada0d
commit
c549e3a17f
1 changed files with 0 additions and 6 deletions
|
|
@ -177,12 +177,6 @@ exports.addMouseWheelListener = function(el, callback) {
|
|||
var max = 0;
|
||||
var listener = function(e) {
|
||||
if (e.wheelDelta !== undefined) {
|
||||
|
||||
// some versions of Safari (e.g. 5.0.5) report insanely high
|
||||
// scroll values. These browsers require a higher factor
|
||||
if (Math.abs(e.wheelDeltaY) > max)
|
||||
max = Math.abs(e.wheelDeltaY);
|
||||
|
||||
if (max > 5000)
|
||||
var factor = 400;
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue