@reactuses/core 1.0.5 → 1.0.6-beta.1

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.
Files changed (3) hide show
  1. package/index.cjs +1 -1
  2. package/index.mjs +1 -1
  3. 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.screenY });
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.screenY });
2349
+ setState({ x: window.scrollX, y: window.scrollY });
2350
2350
  };
2351
2351
  useEventListener("scroll", handleScroll, window, {
2352
2352
  capture: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactuses/core",
3
- "version": "1.0.5",
3
+ "version": "1.0.6-beta.1",
4
4
  "main": "./index.cjs",
5
5
  "module": "./index.mjs",
6
6
  "types": "./index.d.ts",