@odopod/odo-window-events
Advanced tools
Comparing version
{ | ||
"name": "@odopod/odo-window-events", | ||
"description": "Reusable, throttled events on the window object.", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"main": "dist/odo-window-events.js", | ||
@@ -6,0 +6,0 @@ "odoModule": "src/window-events.js", |
@@ -129,10 +129,18 @@ import throttle from 'throttleit'; | ||
const resize = debounce(WindowEvents._callbacks.resize, | ||
WindowEvents.Timing.DEBOUNCE_TIME); | ||
const leadingResize = debounce(WindowEvents._callbacks.leadingResize, | ||
WindowEvents.Timing.DEBOUNCE_TIME, true); | ||
const scrolled = throttle(WindowEvents._callbacks.scroll, | ||
WindowEvents.Timing.THROTTLE_TIME_DEFAULT); | ||
const fastScroll = throttle(WindowEvents._callbacks.fastScroll, | ||
WindowEvents.Timing.THROTTLE_TIME_FAST); | ||
const resize = debounce( | ||
WindowEvents._callbacks.resize, | ||
WindowEvents.Timing.DEBOUNCE_TIME, | ||
); | ||
const leadingResize = debounce( | ||
WindowEvents._callbacks.leadingResize, | ||
WindowEvents.Timing.DEBOUNCE_TIME, true, | ||
); | ||
const scrolled = throttle( | ||
WindowEvents._callbacks.scroll, | ||
WindowEvents.Timing.THROTTLE_TIME_DEFAULT, | ||
); | ||
const fastScroll = throttle( | ||
WindowEvents._callbacks.fastScroll, | ||
WindowEvents.Timing.THROTTLE_TIME_FAST, | ||
); | ||
@@ -139,0 +147,0 @@ WindowEvents._resizeCallback = () => { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
34699
0.22%352
2.33%0
-100%