Comparing version 0.0.0 to 0.0.1
10
index.js
/** | ||
* This module unifies handling of mouse whee event accross different browsers | ||
* This module unifies handling of mouse whee event across different browsers | ||
* | ||
@@ -56,2 +56,10 @@ * See https://developer.mozilla.org/en-US/docs/Web/Reference/Events/wheel?redirectlocale=en-US&redirectslug=DOM%2FMozilla_event_reference%2Fwheel | ||
originalEvent.returnValue = false; | ||
}, | ||
stopPropagation: function() { | ||
if(originalEvent.stopPropagation) | ||
originalEvent.stopPropagation(); | ||
}, | ||
stopImmediatePropagation: function() { | ||
if(originalEvent.stopImmediatePropagation) | ||
originalEvent.stopImmediatePropagation(); | ||
} | ||
@@ -58,0 +66,0 @@ }; |
{ | ||
"name": "wheel", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"description": "Mouse wheel event unified for all browsers", | ||
@@ -21,2 +21,2 @@ "main": "index.js", | ||
} | ||
} | ||
} |
# wheel | ||
This module unifies handling of mouse whee event accross different browsers. | ||
This module unifies handling of mouse whee event across different browsers. | ||
@@ -5,0 +5,0 @@ See [MDN](https://developer.mozilla.org/en-US/docs/Web/Reference/Events/wheel?redirectlocale=en-US&redirectslug=DOM%2FMozilla_event_reference%2Fwheel) |
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
4862
70