Ox.Element: fix onMouseWheel

This commit is contained in:
rlx 2014-09-22 17:12:17 +02:00
parent fb77591a2b
commit aef8e2b188

View file

@ -270,7 +270,7 @@
function onMousewheel(e) { function onMousewheel(e) {
// see https://github.com/brandonaaron/jquery-mousewheel/blob/master/jquery.mousewheel.js // see https://github.com/brandonaaron/jquery-mousewheel/blob/master/jquery.mousewheel.js
//e = e.originalEvent; e = e.originalEvent;
var absDelta, var absDelta,
deltaX = 'deltaX' in e ? e.deltaX deltaX = 'deltaX' in e ? e.deltaX
: 'wheelDeltaX' in e ? -e.wheelDeltaX : 'wheelDeltaX' in e ? -e.wheelDeltaX