{"_id":"jquery-mousewheel","_rev":"209843","name":"jquery-mousewheel","description":"A jQuery plugin that adds cross-browser mouse wheel support.","dist-tags":{"latest":"3.1.13"},"maintainers":[{"name":"brandonaaron","email":"hello.brandon@aaron.sh"},{"name":"dmethvin","email":"dave.methvin@gmail.com"}],"time":{"modified":"2023-03-24T08:32:26.000Z","created":"2011-04-07T07:08:47.261Z","3.1.7":"2013-12-14T18:33:53.066Z","3.1.13":"2015-07-15T18:05:23.331Z","3.1.12":"2014-07-10T15:28:06.494Z","3.1.11":"2014-04-09T18:27:50.646Z","3.1.9":"2013-12-16T14:49:53.297Z","3.1.8":"2013-12-14T19:23:00.581Z","3.1.6":"2013-12-10T00:37:36.739Z","3.1.4":"2013-10-19T00:03:58.379Z","3.1.3":"2013-03-14T21:02:22.997Z","3.0.4":"2011-04-07T07:08:47.261Z"},"users":{},"author":{"name":"jQuery Foundation and other contributors","url":"https://github.com/jquery/jquery-mousewheel/blob/master/AUTHORS.txt"},"repository":{"type":"git","url":"https://github.com/jquery/jquery-mousewheel.git"},"versions":{"3.1.7":{"name":"jquery-mousewheel","version":"3.1.7","author":{"name":"Brandon Aaron","url":"http://brandon.aaron.sh"},"description":"A jQuery plugin that adds cross-browser mouse wheel support.","license":"MIT","homepage":"https://github.com/brandonaaron/jquery-mousewheel","main":"./jquery.mousewheel.js","repository":{"type":"git","url":"https://github.com/brandonaaron/jquery-mousewheel.git"},"bugs":{"url":"https://github.com/brandonaaron/jquery-mousewheel/issues"},"keywords":["jquery","mouse","wheel","event","mousewheel","plugin","browser"],"files":["ChangeLog.md","jquery.mousewheel.js","README.md"],"devDependencies":{"grunt":"~0.4.1","grunt-contrib-connect":"~0.5.0","grunt-contrib-jshint":"~0.7.1","grunt-contrib-uglify":"~0.2.7"},"directories":{"test":"test"},"jam":{"dependencies":{"jquery":">=1.2.2"}},"readmeFilename":"README.md","_id":"jquery-mousewheel@3.1.7","dist":{"shasum":"40e08613d09b05122ee2438d3bffa4e0ee31519e","size":4708,"noattachment":false,"key":"/jquery-mousewheel/-/jquery-mousewheel-3.1.7.tgz","tarball":"http://name.csiicloud.com:7001/jquery-mousewheel/download/jquery-mousewheel-3.1.7.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"brandonaaron","email":"hello.brandon@aaron.sh"},"maintainers":[{"name":"brandonaaron","email":"hello.brandon@aaron.sh"},{"name":"dmethvin","email":"dave.methvin@gmail.com"}],"publish_time":1387046033066,"_hasShrinkwrap":false,"_cnpm_publish_time":1387046033066,"_cnpmcore_publish_time":"2021-12-16T15:16:56.547Z"},"3.1.13":{"name":"jquery-mousewheel","version":"3.1.13","author":{"name":"jQuery Foundation and other contributors","url":"https://github.com/jquery/jquery-mousewheel/blob/master/AUTHORS.txt"},"description":"A jQuery plugin that adds cross-browser mouse wheel support.","licenses":[{"type":"MIT","url":"https://github.com/jquery/jquery-mousewheel/blob/master/LICENSE.txt"}],"homepage":"https://github.com/jquery/jquery-mousewheel","main":"./jquery.mousewheel.js","repository":{"type":"git","url":"https://github.com/jquery/jquery-mousewheel.git"},"bugs":{"url":"https://github.com/jquery/jquery-mousewheel/issues"},"keywords":["jquery","mouse","wheel","event","mousewheel","jquery-plugin","browser"],"files":["ChangeLog.md","jquery.mousewheel.js","README.md","LICENSE.txt"],"devDependencies":{"grunt":"~0.4.1","grunt-contrib-connect":"~0.5.0","grunt-contrib-jshint":"~0.7.1","grunt-contrib-uglify":"~0.2.7"},"directories":{"test":"test"},"jam":{"dependencies":{"jquery":">=1.2.2"}},"gitHead":"67289b6b2aa0066d7d78a5807f520387135ffb22","_id":"jquery-mousewheel@3.1.13","scripts":{},"_shasum":"06f0335f16e353a695e7206bf50503cb523a6ee5","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"dmethvin","email":"dave.methvin@gmail.com"},"maintainers":[{"name":"brandonaaron","email":"hello.brandon@aaron.sh"},{"name":"dmethvin","email":"dave.methvin@gmail.com"}],"dist":{"shasum":"06f0335f16e353a695e7206bf50503cb523a6ee5","size":6294,"noattachment":false,"key":"/jquery-mousewheel/-/jquery-mousewheel-3.1.13.tgz","tarball":"http://name.csiicloud.com:7001/jquery-mousewheel/download/jquery-mousewheel-3.1.13.tgz"},"publish_time":1436983523331,"_hasShrinkwrap":false,"_cnpm_publish_time":1436983523331,"_cnpmcore_publish_time":"2021-12-16T15:16:55.014Z"},"3.1.12":{"name":"jquery-mousewheel","version":"3.1.12","author":{"name":"Brandon Aaron","url":"http://brandon.aaron.sh"},"description":"A jQuery plugin that adds cross-browser mouse wheel support.","license":"MIT","homepage":"https://github.com/brandonaaron/jquery-mousewheel","main":"./jquery.mousewheel.js","repository":{"type":"git","url":"https://github.com/brandonaaron/jquery-mousewheel.git"},"bugs":{"url":"https://github.com/brandonaaron/jquery-mousewheel/issues"},"keywords":["jquery","mouse","wheel","event","mousewheel","plugin","browser"],"files":["ChangeLog.md","jquery.mousewheel.js","README.md"],"devDependencies":{"grunt":"~0.4.1","grunt-contrib-connect":"~0.5.0","grunt-contrib-jshint":"~0.7.1","grunt-contrib-uglify":"~0.2.7"},"directories":{"test":"test"},"jam":{"dependencies":{"jquery":">=1.2.2"}},"_id":"jquery-mousewheel@3.1.12","dist":{"shasum":"569f937741159d4fe904d1f02e4089199371919c","size":5395,"noattachment":false,"key":"/jquery-mousewheel/-/jquery-mousewheel-3.1.12.tgz","tarball":"http://name.csiicloud.com:7001/jquery-mousewheel/download/jquery-mousewheel-3.1.12.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"brandonaaron","email":"hello.brandon@aaron.sh"},"maintainers":[{"name":"brandonaaron","email":"hello.brandon@aaron.sh"},{"name":"dmethvin","email":"dave.methvin@gmail.com"}],"publish_time":1405006086494,"_hasShrinkwrap":false,"_cnpm_publish_time":1405006086494,"_cnpmcore_publish_time":"2021-12-16T15:16:55.249Z"},"3.1.11":{"name":"jquery-mousewheel","version":"3.1.11","author":{"name":"Brandon Aaron","url":"http://brandon.aaron.sh"},"description":"A jQuery plugin that adds cross-browser mouse wheel support.","license":"MIT","homepage":"https://github.com/brandonaaron/jquery-mousewheel","main":"./jquery.mousewheel.js","repository":{"type":"git","url":"https://github.com/brandonaaron/jquery-mousewheel.git"},"bugs":{"url":"https://github.com/brandonaaron/jquery-mousewheel/issues"},"keywords":["jquery","mouse","wheel","event","mousewheel","plugin","browser"],"files":["ChangeLog.md","jquery.mousewheel.js","README.md"],"devDependencies":{"grunt":"~0.4.1","grunt-contrib-connect":"~0.5.0","grunt-contrib-jshint":"~0.7.1","grunt-contrib-uglify":"~0.2.7"},"directories":{"test":"test"},"jam":{"dependencies":{"jquery":">=1.2.2"}},"_id":"jquery-mousewheel@3.1.11","dist":{"shasum":"d7617476551db371bfa8141897eccd6b5d735448","size":5355,"noattachment":false,"key":"/jquery-mousewheel/-/jquery-mousewheel-3.1.11.tgz","tarball":"http://name.csiicloud.com:7001/jquery-mousewheel/download/jquery-mousewheel-3.1.11.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"brandonaaron","email":"hello.brandon@aaron.sh"},"maintainers":[{"name":"brandonaaron","email":"hello.brandon@aaron.sh"},{"name":"dmethvin","email":"dave.methvin@gmail.com"}],"publish_time":1397068070646,"_hasShrinkwrap":false,"_cnpm_publish_time":1397068070646,"_cnpmcore_publish_time":"2021-12-16T15:16:55.619Z"},"3.1.9":{"name":"jquery-mousewheel","version":"3.1.9","author":{"name":"Brandon Aaron","url":"http://brandon.aaron.sh"},"description":"A jQuery plugin that adds cross-browser mouse wheel support.","license":"MIT","homepage":"https://github.com/brandonaaron/jquery-mousewheel","main":"./jquery.mousewheel.js","repository":{"type":"git","url":"https://github.com/brandonaaron/jquery-mousewheel.git"},"bugs":{"url":"https://github.com/brandonaaron/jquery-mousewheel/issues"},"keywords":["jquery","mouse","wheel","event","mousewheel","plugin","browser"],"files":["ChangeLog.md","jquery.mousewheel.js","README.md"],"devDependencies":{"grunt":"~0.4.1","grunt-contrib-connect":"~0.5.0","grunt-contrib-jshint":"~0.7.1","grunt-contrib-uglify":"~0.2.7"},"directories":{"test":"test"},"jam":{"dependencies":{"jquery":">=1.2.2"}},"readmeFilename":"README.md","_id":"jquery-mousewheel@3.1.9","dist":{"shasum":"14b0ef3b8b4f8f13d4c2ed2179cf80daac325456","size":5068,"noattachment":false,"key":"/jquery-mousewheel/-/jquery-mousewheel-3.1.9.tgz","tarball":"http://name.csiicloud.com:7001/jquery-mousewheel/download/jquery-mousewheel-3.1.9.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"brandonaaron","email":"hello.brandon@aaron.sh"},"maintainers":[{"name":"brandonaaron","email":"hello.brandon@aaron.sh"},{"name":"dmethvin","email":"dave.methvin@gmail.com"}],"publish_time":1387205393297,"_hasShrinkwrap":false,"_cnpm_publish_time":1387205393297,"_cnpmcore_publish_time":"2021-12-16T15:16:55.839Z"},"3.1.8":{"name":"jquery-mousewheel","version":"3.1.8","author":{"name":"Brandon Aaron","url":"http://brandon.aaron.sh"},"description":"A jQuery plugin that adds cross-browser mouse wheel support.","license":"MIT","homepage":"https://github.com/brandonaaron/jquery-mousewheel","main":"./jquery.mousewheel.js","repository":{"type":"git","url":"https://github.com/brandonaaron/jquery-mousewheel.git"},"bugs":{"url":"https://github.com/brandonaaron/jquery-mousewheel/issues"},"keywords":["jquery","mouse","wheel","event","mousewheel","plugin","browser"],"files":["ChangeLog.md","jquery.mousewheel.js","README.md"],"devDependencies":{"grunt":"~0.4.1","grunt-contrib-connect":"~0.5.0","grunt-contrib-jshint":"~0.7.1","grunt-contrib-uglify":"~0.2.7"},"directories":{"test":"test"},"jam":{"dependencies":{"jquery":">=1.2.2"}},"readmeFilename":"README.md","_id":"jquery-mousewheel@3.1.8","dist":{"shasum":"a6deaa2b6740dfbf3667bd86ae0648d05026e0ff","size":4805,"noattachment":false,"key":"/jquery-mousewheel/-/jquery-mousewheel-3.1.8.tgz","tarball":"http://name.csiicloud.com:7001/jquery-mousewheel/download/jquery-mousewheel-3.1.8.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"brandonaaron","email":"hello.brandon@aaron.sh"},"maintainers":[{"name":"brandonaaron","email":"hello.brandon@aaron.sh"},{"name":"dmethvin","email":"dave.methvin@gmail.com"}],"publish_time":1387048980581,"_hasShrinkwrap":false,"_cnpm_publish_time":1387048980581,"_cnpmcore_publish_time":"2021-12-16T15:16:56.056Z"},"3.1.6":{"name":"jquery-mousewheel","version":"3.1.6","author":{"name":"Brandon Aaron","email":"brandon.aaron@gmail.com","url":"http://brandonaaron.net/"},"description":"A jQuery plugin that adds cross-browser mouse wheel support.","main":"./jquery.mousewheel.js","repository":{"type":"git","url":"https://github.com/brandonaaron/jquery-mousewheel.git"},"bugs":{"url":"https://github.com/brandonaaron/jquery-mousewheel/issues"},"keywords":["jquery","mouse","wheel","event","mousewheel","plugin","browser"],"licenses":[{"type":"MIT","url":"https://raw.github.com/brandonaaron/jquery-mousewheel/master/LICENSE.txt"}],"devDependencies":{"grunt":"~0.4.1","grunt-contrib-jshint":"~0.6.4","grunt-contrib-uglify":"~0.2.4","grunt-contrib-connect":"~0.5.0"},"directories":{"test":"test"},"jam":{"dependencies":{"jquery":">=1.2.2"}},"readmeFilename":"README.md","homepage":"https://github.com/brandonaaron/jquery-mousewheel","_id":"jquery-mousewheel@3.1.6","dist":{"shasum":"8e980c09aef18f19ddb97ef73aca5a81b20bce69","size":86170,"noattachment":false,"key":"/jquery-mousewheel/-/jquery-mousewheel-3.1.6.tgz","tarball":"http://name.csiicloud.com:7001/jquery-mousewheel/download/jquery-mousewheel-3.1.6.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"brandonaaron","email":"hello.brandon@aaron.sh"},"maintainers":[{"name":"brandonaaron","email":"hello.brandon@aaron.sh"},{"name":"dmethvin","email":"dave.methvin@gmail.com"}],"publish_time":1386635856739,"_hasShrinkwrap":false,"_cnpm_publish_time":1386635856739,"_cnpmcore_publish_time":"2021-12-16T15:16:56.847Z"},"3.1.4":{"name":"jquery-mousewheel","version":"3.1.4","author":{"name":"Brandon Aaron","email":"brandon.aaron@gmail.com","url":"http://brandonaaron.net/"},"description":"A jQuery plugin that adds cross-browser mouse wheel support.","main":"./jquery.mousewheel.js","repository":{"type":"git","url":"https://github.com/brandonaaron/jquery-mousewheel.git"},"bugs":{"url":"https://github.com/brandonaaron/jquery-mousewheel/issues"},"keywords":["jquery","mouse","wheel","event","mousewheel","plugin","browser"],"licenses":[{"type":"MIT","url":"https://raw.github.com/brandonaaron/jquery-mousewheel/master/LICENSE.txt"}],"devDependencies":{"grunt":"~0.4.1","grunt-contrib-jshint":"~0.6.4","grunt-contrib-uglify":"~0.2.4"},"readmeFilename":"README.markdown","directories":{"test":"test"},"jam":{"dependencies":{"jquery":">=1.2.2"}},"_id":"jquery-mousewheel@3.1.4","dist":{"shasum":"92a70a3e074134e389c0eb482cb917ce6bd4e127","size":84980,"noattachment":false,"key":"/jquery-mousewheel/-/jquery-mousewheel-3.1.4.tgz","tarball":"http://name.csiicloud.com:7001/jquery-mousewheel/download/jquery-mousewheel-3.1.4.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"brandonaaron","email":"brandon.aaron@gmail.com"},"maintainers":[{"name":"brandonaaron","email":"hello.brandon@aaron.sh"},{"name":"dmethvin","email":"dave.methvin@gmail.com"}],"publish_time":1382141038379,"_hasShrinkwrap":false,"_cnpm_publish_time":1382141038379,"_cnpmcore_publish_time":"2021-12-16T15:16:57.124Z"},"3.1.3":{"name":"jquery-mousewheel","version":"3.1.3","description":"A jQuery plugin that adds cross-browser mouse wheel support.","main":"./jquery.mousewheel.js","repository":{"type":"git","url":"https://github.com/brandonaaron/jquery-mousewheel.git"},"keywords":["jquery","mouse","wheel","event","mousewheel","plugin","browser"],"author":{"name":"Brandon Aaron","email":"brandon.aaron@gmail.com","url":"http://brandonaaron.net/"},"licenses":[{"type":"MIT","url":"https://raw.github.com/brandonaaron/jquery-mousewheel/master/LICENSE.txt"}],"devDependencies":{"grunt-contrib-jshint":"~0.2.0","grunt-contrib-uglify":"~0.1.2","grunt":"~0.4.0"},"readmeFilename":"README.markdown","_id":"jquery-mousewheel@3.1.3","dist":{"shasum":"344fbe84ea9f4ae2ba7115d4f0dd0fd68f432c42","size":84571,"noattachment":false,"key":"/jquery-mousewheel/-/jquery-mousewheel-3.1.3.tgz","tarball":"http://name.csiicloud.com:7001/jquery-mousewheel/download/jquery-mousewheel-3.1.3.tgz"},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"brandonaaron","email":"brandon.aaron@gmail.com"},"maintainers":[{"name":"brandonaaron","email":"hello.brandon@aaron.sh"},{"name":"dmethvin","email":"dave.methvin@gmail.com"}],"directories":{},"publish_time":1363294942997,"_hasShrinkwrap":false,"_cnpm_publish_time":1363294942997,"_cnpmcore_publish_time":"2021-12-16T15:16:57.390Z"},"3.0.4":{"name":"jquery-mousewheel","version":"3.0.4","description":"A jQuery plugin that adds cross-browser mouse wheel support.","main":"./jquery.mousewheel.js","repository":{"type":"git","url":"git://github.com/brandonaaron/jquery-mousewheel.git"},"browserify":{"main":"./browserify.js"},"keywords":["jquery","mousewheel","plugin","browser"],"author":{"name":"Brandon Aaron","email":"brandon.aaron@gmail.com","url":"http://brandonaaron.net/"},"license":"MIT","_id":"jquery-mousewheel@3.0.4","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"0.3.18","_nodeVersion":"v0.4.2","directories":{},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"9a7d5548b7993c1d7f407f091d6a3da9d05e1a5e","size":4470,"noattachment":false,"key":"/jquery-mousewheel/-/jquery-mousewheel-3.0.4.tgz","tarball":"http://name.csiicloud.com:7001/jquery-mousewheel/download/jquery-mousewheel-3.0.4.tgz"},"publish_time":1302160127261,"maintainers":[{"name":"brandonaaron","email":"hello.brandon@aaron.sh"},{"name":"dmethvin","email":"dave.methvin@gmail.com"}],"_hasShrinkwrap":false,"_cnpm_publish_time":1302160127261,"_cnpmcore_publish_time":"2021-12-16T15:16:57.609Z"}},"readme":"# jQuery Mouse Wheel Plugin\n\nA [jQuery](http://jquery.com/) plugin that adds cross-browser mouse wheel support with delta normalization.\n\nIn order to use the plugin, simply bind the `mousewheel` event to an element.\n\nIt also provides two helper methods called `mousewheel` and `unmousewheel`\nthat act just like other event helper methods in jQuery.\n\nThe event object is updated with the normalized `deltaX` and `deltaY` properties.\nIn addition there is a new property on the event object called `deltaFactor`. Multiply\nthe `deltaFactor` by `deltaX` or `deltaY` to get the scroll distance that the browser\nhas reported.\n\nHere is an example of using both the bind and helper method syntax:\n\n```js\n// using on\n$('#my_elem').on('mousewheel', function(event) {\n    console.log(event.deltaX, event.deltaY, event.deltaFactor);\n});\n\n// using the event helper\n$('#my_elem').mousewheel(function(event) {\n    console.log(event.deltaX, event.deltaY, event.deltaFactor);\n});\n```\n\nThe old behavior of adding three arguments (`delta`, `deltaX`, and `deltaY`) to the\nevent handler is now deprecated and will be removed in later releases.\n\n\n## The Deltas...\n\nThe combination of Browsers, Operating Systems, and Devices offer a huge range of possible delta values. In fact if the user\nuses a trackpad and then a physical mouse wheel the delta values can differ wildly. This plugin normalizes those\nvalues so you get a whole number starting at +-1 and going up in increments of +-1 according to the force or\nacceleration that is used. This number has the potential to be in the thousands depending on the device.\nCheck out some of the data collected from users [here](http://mousewheeldatacollector.herokuapp.com/).\n\n### Getting the scroll distance\n\nIn some use-cases we prefer to have the normalized delta but in others we want to know how far the browser should\nscroll based on the users input. This can be done by multiplying the `deltaFactor` by the `deltaX` or `deltaY`\nevent property to find the scroll distance the browser reported.\n\nThe `deltaFactor` property was added to the event object in 3.1.5 so that the actual reported delta value can be\nextracted. This is a non-standard property.\n\n\n## Using with [Browserify](http://browserify.org)\n\nSupport for browserify is baked in.\n\n```bash\nnpm install jquery-mousewheel\nnpm install jquery-browserify\n```\n\nIn your server-side node.js code:\n\n```js\nvar express = require('express');\nvar app = express.createServer();\n\napp.use(require('browserify')({\n    require : [ 'jquery-browserify', 'jquery-mousewheel' ]\n}));\n```\n\nIn your browser-side javascript:\n\n```js\nvar $ = require('jquery-browserify');\nrequire('jquery-mousewheel')($);\n```\n","_attachments":{},"homepage":"https://github.com/jquery/jquery-mousewheel","bugs":{"url":"https://github.com/jquery/jquery-mousewheel/issues"}}