@nextui-org/use-scroll-position
Advanced tools
Comparing version 2.0.6 to 2.0.7
@@ -55,5 +55,6 @@ "use strict"; | ||
if (delay) { | ||
if (throttleTimeout.current === null) { | ||
throttleTimeout.current = setTimeout(handler, delay); | ||
if (throttleTimeout.current) { | ||
clearTimeout(throttleTimeout.current); | ||
} | ||
throttleTimeout.current = setTimeout(handler, delay); | ||
} else { | ||
@@ -60,0 +61,0 @@ handler(); |
{ | ||
"name": "@nextui-org/use-scroll-position", | ||
"version": "2.0.6", | ||
"version": "2.0.7", | ||
"description": "Provides the logic to control the scroll over an element", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
8212
157