Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #17 from dmethvin/use-orgevent

Use orgEvent for mousewheel values.
  • Loading branch information...
commit a220faf3fc927ceddfb61c5c0ee0871562fa5ac7 2 parents e3b12aa + cbd8fb8
Brandon Aaron authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 jquery.mousewheel.js
4 jquery.mousewheel.js
@@ -59,8 +59,8 @@ function handler(event) {
59 59 event.type = "mousewheel";
60 60
61 61 // Old school scrollwheel delta
62   - if ( event.wheelDelta ) { delta = event.wheelDelta/120; }
63   - if ( event.detail ) { delta = -event.detail/3; }
  62 + if ( orgEvent.wheelDelta ) { delta = orgEvent.wheelDelta/120; }
  63 + if ( orgEvent.detail ) { delta = -orgEvent.detail/3; }
64 64
65 65 // New school multidimensional scroll (touchpads) deltas
66 66 deltaY = delta;

0 comments on commit a220faf

Please sign in to comment.
Something went wrong with that request. Please try again.