Created
April 18, 2010 14:36
-
-
Save remy/370248 to your computer and use it in GitHub Desktop.
Capture mousewheel event (jQuery)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// taken from http://html5readiness.com/script.js - cheers paul! | |
$(document).bind('DOMMouseScroll mousewheel', function(e, delta) { | |
delta = delta || e.detail || e.wheelDelta; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
if $ means jQuery ,please replace 'e' with 'e.originalEvent'