@egstad/detect-scroll
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -237,3 +237,10 @@ import { getEl } from './src/getElement' | ||
if (unthrottledEvents.includes(type)) { | ||
this.el.dispatchEvent(new CustomEvent(type)) | ||
this.el.dispatchEvent( | ||
new CustomEvent(type, { | ||
detail: { | ||
x: this.x, | ||
y: this.y, | ||
}, | ||
}) | ||
) | ||
@@ -240,0 +247,0 @@ if (this.debugMode) console.info(type) |
{ | ||
"name": "@egstad/detect-scroll", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "A performant and lightweight ES6 module for detecting scroll activity (direction + location) for X and/or Y axis", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
2217938
70
2699
7
10