{"name":"mouse-wheel","version":"1.1.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":"git+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":"177803bbbca145afce2e5d24dc0e0c54d877fd51","_id":"mouse-wheel@1.1.0","_shasum":"bb542e3c4ac6ee1ca5621a655eef3842f15e71ae","_from":".","_npmVersion":"2.13.1","_nodeVersion":"0.12.2","_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"dist":{"shasum":"bb542e3c4ac6ee1ca5621a655eef3842f15e71ae","tarball":"http://registry-npm.ywwl.com/mouse-wheel/download/mouse-wheel-1.1.0.tgz","integrity":"sha512-tOJ/OXiJaSRnOvIQfy+tLiM+9HyIMCRAYyM2UiTLeEMGeKtBDa4YSBfv3THYKBP0N8G60FfHFBP6Xw/UvrLf5Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICu04mo+feBF2xJ0ENFFxguDBaldhko6XDLuKOps+4yBAiBKn4u3FSNp3b+2gpCuAjuELG7KN5yLV1vfDnAltMDNzw=="}],"size":2309,"noattachment":false,"key":"/mouse-wheel/-/mouse-wheel-1.1.0.tgz"},"maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}],"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/mouse-wheel-1.1.0.tgz_1455635020612_0.7855185312218964"},"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":1455635024394,"_cnpm_publish_time":1455635024394,"dist-tags":{"latest":"1.2.0"}}