@odopod/odo-window-events
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"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
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
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
352
0