Skip to content

Commit

Permalink
Use orgEvent for mousewheel values.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmethvin committed Nov 8, 2011
1 parent e3b12aa commit cbd8fb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jquery.mousewheel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cbd8fb8

Please sign in to comment.