mouse-wheel
Advanced tools
Comparing version 1.1.0 to 1.2.0
{ | ||
"name": "mouse-wheel", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Consistent cross browser mouse wheel movement", | ||
@@ -5,0 +5,0 @@ "main": "wheel.js", |
@@ -25,4 +25,5 @@ mouse-wheel | ||
* `element` is an optional DOM element, or if unspecified then is the window object. | ||
* `callback(dx, dy, dz)` is called whenever the mouse scrolls | ||
* `callback(dx, dy, dz, ev)` is called whenever the mouse scrolls | ||
+ `dx, dy, dz` is the amount of scrolling vertically, horizontally and depth-wise in pixels | ||
+ `ev` is the MouseEvent object associated with the event | ||
* `noScroll` is an optional flag, which if set disables scrolling the page | ||
@@ -29,0 +30,0 @@ |
@@ -35,3 +35,3 @@ 'use strict' | ||
if(dx || dy || dz) { | ||
return callback(dx, dy, dz) | ||
return callback(dx, dy, dz, ev) | ||
} | ||
@@ -38,0 +38,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4558
34