Permalink
Browse files

Merge pull request #17 from dmethvin/use-orgevent

Use orgEvent for mousewheel values.
  • Loading branch information...
2 parents e3b12aa + cbd8fb8 commit a220faf3fc927ceddfb61c5c0ee0871562fa5ac7 @brandonaaron brandonaaron committed Nov 9, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 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 a220faf

Please sign in to comment.