Browse files

Use orgEvent for mousewheel values.

  • Loading branch information...
1 parent e3b12aa commit cbd8fb892452459078db07a99ff3c30995ab59ce @dmethvin dmethvin committed Nov 8, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 jquery.mousewheel.js
View
4 jquery.mousewheel.js
@@ -59,8 +59,8 @@ function handler(event) {
event.type = "mousewheel";
// Old school scrollwheel delta
- if ( event.wheelDelta ) { delta = event.wheelDelta/120; }
- if ( event.detail ) { delta = -event.detail/3; }
+ if ( orgEvent.wheelDelta ) { delta = orgEvent.wheelDelta/120; }
+ if ( orgEvent.detail ) { delta = -orgEvent.detail/3; }
// New school multidimensional scroll (touchpads) deltas
deltaY = delta;

0 comments on commit cbd8fb8

Please sign in to comment.