Mousewheel fixes for Firefox and IE 10.
Now tested with the latest versions of following browsers. In OS X: Chrome Firefox Safari In Windows: Chrome Firefox Internet Explorer 10 Opera Safari
This commit is contained in:
parent
0fc81dfa83
commit
d3181f0b0d
@ -348,6 +348,18 @@
|
||||
deltaY = e.originalEvent.wheelDeltaY / 6;
|
||||
}
|
||||
|
||||
if (e.originalEvent.deltaMode && e.originalEvent.deltaMode === 1) {
|
||||
// Firefox in deltaMode 1: Line scrolling
|
||||
deltaX *= 10;
|
||||
deltaY *= 10;
|
||||
}
|
||||
|
||||
if (deltaX !== deltaX && deltaY !== deltaY/* NaN checks */) {
|
||||
// IE in some mouse drivers
|
||||
deltaX = 0;
|
||||
deltaY = e.originalEvent.wheelDelta;
|
||||
}
|
||||
|
||||
return [deltaX, deltaY];
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user