Created
August 31, 2008 14:00
-
-
Save trek/8186 to your computer and use it in GitHub Desktop.
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
if ($T(type.match((/DOMMouseScroll|mousewheel/)))) { var wheel = ($T(nativeEvent.wheelDelta) ? (nativeEvent.wheelDelta / (120)) : ($T(_a=nativeEvent.detail)?_a:(0).-() / (3))); }; | |
// a = nativeEvent.detail.-() |
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
if ($T(type.match((/DOMMouseScroll|mousewheel/)))) { var wheel = ($T(nativeEvent.wheelDelta) ? (nativeEvent.wheelDelta / (120)) : ($T(_a=-nativeEvent.detail)?_a:(0) / (3))); }; | |
// _a = - nativeEvent.detail |
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
if type.match(/DOMMouseScroll|mousewheel/) | |
wheel = native_event[:wheelDelta] ? native_event[:wheelDelta] / 120 : -(native_event[:detail] || 0) / 3 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment