Recommend this page to a friend! |
Classes of Jorge Castro | Gentelella BladeOne | vendors/jquery-mousewheel/README.md | Download |
|
DownloadjQuery Mouse Wheel PluginA jQuery plugin that adds cross-browser mouse wheel support with delta normalization. In order to use the plugin, simply bind the It also provides two helper methods called The event object is updated with the normalized Here is an example of using both the bind and helper method syntax:
The old behavior of adding three arguments ( The Deltas...The combination of Browsers, Operating Systems, and Devices offer a huge range of possible delta values. In fact if the user uses a trackpad and then a physical mouse wheel the delta values can differ wildly. This plugin normalizes those values so you get a whole number starting at +-1 and going up in increments of +-1 according to the force or acceleration that is used. This number has the potential to be in the thousands depending on the device. Check out some of the data collected from users here. Getting the scroll distanceIn some use-cases we prefer to have the normalized delta but in others we want to know how far the browser should
scroll based on the users input. This can be done by multiplying the The Using with BrowserifySupport for browserify is baked in.
In your server-side node.js code:
In your browser-side javascript:
|