{"name":"mouse-wheel","version":"1.2.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":"3985924e80f028ed18bf7020d02d924f2f4c01f3","_id":"mouse-wheel@1.2.0","_shasum":"6d2903b1ea8fb48e61f1b53b9036773f042cdb5c","_from":".","_npmVersion":"2.13.1","_nodeVersion":"0.12.2","_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"dist":{"shasum":"6d2903b1ea8fb48e61f1b53b9036773f042cdb5c","tarball":"http://registry-npm.ywwl.com/mouse-wheel/download/mouse-wheel-1.2.0.tgz","integrity":"sha512-+OfYBiUOCTWcTECES49neZwL5AoGkXE+lFjIvzwNCnYRlso+EnfvovcBxGoyQ0yQt806eSPjS675K0EwWknXmw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHtBTS1e1eehqv1K80WXFK0Ebtlma5To46fukdbQxXoDAiAHkNSD5jSTN/rGXZzgGvU8jpsfR/sC2XyBzAPWOC8g0w=="}],"size":2339,"noattachment":false,"key":"/mouse-wheel/-/mouse-wheel-1.2.0.tgz"},"maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/mouse-wheel-1.2.0.tgz_1467654104764_0.4660764879081398"},"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":1467654108135,"_cnpm_publish_time":1467654108135,"dist-tags":{"latest":"1.2.0"}}