{"name":"mouse-wheel","version":"1.0.0","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":"16203aee65762ce531ba11df09e4aa59c559044a","_id":"mouse-wheel@1.0.0","_shasum":"c1d6182be374d61da3da6afcf8135c0cbad0d233","_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":"c1d6182be374d61da3da6afcf8135c0cbad0d233","tarball":"http://registry-npm.ywwl.com/mouse-wheel/download/mouse-wheel-1.0.0.tgz","integrity":"sha512-/sqHrLtU8BzNRxcZiaWiPrCXYwagt4TyVVruyJ8mso/hi4EwoZhsheYKlmRDFN3udZc7wQLSLVXi3UFWveUKkw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIES/LZUrypzzcJ92+BwkKWCBzxN7rZTk86iwbA760w2cAiARbKtbgcMUyOg3TPkyhib0fnbv/qepy/tMn37Rz4ffPg=="}],"size":2476,"noattachment":false,"key":"/mouse-wheel/-/mouse-wheel-1.0.0.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":1424210749811,"_cnpm_publish_time":1424210749811,"dist-tags":{"latest":"1.2.0"}}