makeup-prevent-scroll-keys
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -8,3 +8,2 @@ "use strict"; | ||
exports.remove = remove; | ||
function onKeyDown(e) { | ||
@@ -15,9 +14,7 @@ if (e.keyCode >= 32 && e.keyCode <= 40) { | ||
} | ||
function add(el) { | ||
el.addEventListener('keydown', onKeyDown); | ||
} | ||
function remove(el) { | ||
el.removeEventListener('keydown', onKeyDown); | ||
} |
{ | ||
"name": "makeup-prevent-scroll-keys", | ||
"description": "Prevents default scroll event when pressing down arrow, page down, spacebar, etc.", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"main": "./dist/cjs/index.js", | ||
@@ -6,0 +6,0 @@ "module": "./dist/mjs/index.js", |
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
3818
7
50