Support for geckos older axis interface

This commit is contained in:
Brandon Aaron
2013-10-18 18:48:37 -05:00
parent 78b2ef36cb
commit 4eaa06e550
+6
View File
@@ -81,6 +81,12 @@
// At a minimum, setup the deltaY to be delta
deltaY = delta;
// Firefox < 17 related to DOMMouseScroll event
if ( orgEvent.axis !== undefined && orgEvent.axis === orgEvent.HORIZONTAL_AXIS ) {
deltaY = 0;
deltaX = delta * -1;
}
// New school wheel delta (wheel event)
if ( orgEvent.deltaY ) {
deltaY = orgEvent.deltaY * -1;