{"name":"mouse-wheel","version":"1.0.1","description":"Consistent cross browser mouse wheel movement","main":"wheel.js","directories":{"example":"example"},"dependencies":{"right-now":"^1.0.0","to-px":"^1.0.1","signum":"^1.0.0"},"devDependencies":{},"scripts":{"test":"tape test/*.js"},"repository":{"type":"git","url":"https://github.com/mikolalysenko/mouse-wheel.git"},"keywords":["mouse","wheel","browser","speed","consistent","portability","poly","fill","fix"],"author":{"name":"Mikola Lysenko"},"license":"MIT","bugs":{"url":"https://github.com/mikolalysenko/mouse-wheel/issues"},"homepage":"https://github.com/mikolalysenko/mouse-wheel","gitHead":"649b2ff3f76f79bd91a1ac294a7e3d78cecc36ec","_id":"mouse-wheel@1.0.1","_shasum":"4fd8875315591e0f1b0954492a44ca679bfcb3fa","_from":".","_npmVersion":"2.1.4","_nodeVersion":"0.10.26","_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}],"dist":{"shasum":"4fd8875315591e0f1b0954492a44ca679bfcb3fa","tarball":"http://registry-npm.ywwl.com/mouse-wheel/download/mouse-wheel-1.0.1.tgz","integrity":"sha512-QaBFt8SZKbDfA9NTk4wPna+2PbkwnswdrjJTA1M+Af4PlGhMJuj+doTFZrku43Y+dJrRdGRgq52FujcuJQU0FQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCpwWwUTCDtdbTVC8Eay+IFdvJRy1zKmC8eSU/afPyPsgIhAKx4vruK5SR1itWvtZPXKvb3MDQzyv8Y0+dzfW+Q8Pzo"}],"size":2447,"noattachment":false,"key":"/mouse-wheel/-/mouse-wheel-1.0.1.tgz"},"readme":"mouse-wheel\n===========\nConsistent cross browser mouse wheel events.  [Test it out in your browser here](https://mikolalysenko.github.io/mouse-wheel/).\n\n# Example\n\n```javascript\nrequire('mouse-wheel')(function(dx, dy) {\n  document.body.innerHTML = '<p>Scroll:' + [dx,dy] + '</p>'\n})\n```\n\n# Install\n\n```\nnpm i mouse-wheel\n```\n\n# API\n\n#### `require('mouse-wheel')(element, callback, noScroll)`\nHook an event handler for the mouse wheel on `element`.\n\n* `element` is an optional DOM element, or if unspecified then is the window object.\n* `callback(dx, dy, dz, ev)` is called whenever the mouse scrolls\n    + `dx, dy, dz` is the amount of scrolling vertically, horizontally and depth-wise in pixels\n    + `ev` is the MouseEvent object associated with the event\n* `noScroll` is an optional flag, which if set disables scrolling the page\n\nReturns listener function `listener` so that it may be detached later with `element.removeEventListener('wheel', listener)`\n\n# License\n(c) 2015 Mikola Lysenko. MIT License\n","publish_time":1424213140245,"_cnpm_publish_time":1424213140245,"dist-tags":{"latest":"1.2.0"}}