always include the deltaY at a minimum even if the browser does not support scrolling on X and Y axis

This commit is contained in:
Brandon Aaron
2013-10-18 18:48:09 -05:00
parent 5e473a377a
commit 78b2ef36cb
+3
View File
@@ -78,6 +78,9 @@
if ( orgEvent.wheelDelta ) { delta = orgEvent.wheelDelta; }
if ( orgEvent.detail ) { delta = orgEvent.detail * -1; }
// At a minimum, setup the deltaY to be delta
deltaY = delta;
// New school wheel delta (wheel event)
if ( orgEvent.deltaY ) {
deltaY = orgEvent.deltaY * -1;