Skip to content

Instantly share code, notes, and snippets.

@paulirish
Forked from remy/gist:370248
Created April 18, 2010 15:03
Show Gist options
  • Save paulirish/370267 to your computer and use it in GitHub Desktop.
Save paulirish/370267 to your computer and use it in GitHub Desktop.
// mousewheel normalization.
// taken from http://html5readiness.com/js/script.js - cheers paul!
$(document).bind('DOMMouseScroll mousewheel', function(e, delta) {
delta = delta || (e.detail && -e.detail/3) || (e.wheelDelta && e.wheelDelta/120);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment