@react-hook/window-scroll
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -25,3 +25,3 @@ 'use strict' | ||
const [scrollY, setThrottledScroll] = (0, _throttle.default)( | ||
typeof window === 'undefined' ? 0 : getScrollY(), | ||
typeof window === 'undefined' ? 0 : getScrollY, | ||
fps, | ||
@@ -28,0 +28,0 @@ true |
@@ -14,3 +14,3 @@ import {useEffect} from 'react' | ||
const [scrollY, setThrottledScroll] = useThrottle( | ||
typeof window === 'undefined' ? 0 : getScrollY(), | ||
typeof window === 'undefined' ? 0 : getScrollY, | ||
fps, | ||
@@ -17,0 +17,0 @@ true |
{ | ||
"name": "@react-hook/window-scroll", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"main": "dist/cjs/index.js", | ||
@@ -5,0 +5,0 @@ "author": "Jared Lunde <jared@BeStellar.co> (https://BeStellar.co)", |
@@ -15,3 +15,3 @@ import {useEffect} from 'react' | ||
const [scrollY, setThrottledScroll] = useThrottle( | ||
typeof window === 'undefined' ? 0 : getScrollY(), | ||
typeof window === 'undefined' ? 0 : getScrollY, | ||
fps, | ||
@@ -18,0 +18,0 @@ true |
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
5322