@reactuses/core 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs +1 -1
- package/index.mjs +1 -1
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -2350,7 +2350,7 @@ function useWindowScroll() {
|
|
|
2350
2350
|
y: 0
|
|
2351
2351
|
}));
|
|
2352
2352
|
const handleScroll = () => {
|
|
2353
|
-
setState({ x: window.scrollX, y: window.
|
|
2353
|
+
setState({ x: window.scrollX, y: window.scrollY });
|
|
2354
2354
|
};
|
|
2355
2355
|
useEventListener("scroll", handleScroll, window, {
|
|
2356
2356
|
capture: false,
|
package/index.mjs
CHANGED
|
@@ -2346,7 +2346,7 @@ function useWindowScroll() {
|
|
|
2346
2346
|
y: 0
|
|
2347
2347
|
}));
|
|
2348
2348
|
const handleScroll = () => {
|
|
2349
|
-
setState({ x: window.scrollX, y: window.
|
|
2349
|
+
setState({ x: window.scrollX, y: window.scrollY });
|
|
2350
2350
|
};
|
|
2351
2351
|
useEventListener("scroll", handleScroll, window, {
|
|
2352
2352
|
capture: false,
|