We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
getPositionToScreen
2 parents ff2225f + 8fe4e2a commit a37052dCopy full SHA for a37052d
.changeset/nasty-otters-camp.md
@@ -0,0 +1,5 @@
1
+---
2
+"@solid-primitives/mouse": patch
3
4
+
5
+Use `scrollY` not `screenY` in `getPositionToScreen`
packages/mouse/src/common.ts
@@ -164,5 +164,5 @@ export const getPositionToScreen = isServer
164
? (): Position => DEFAULT_MOUSE_POSITION
165
: (pageX: number, pageY: number): Position => ({
166
x: pageX - window.scrollX,
167
- y: pageY - window.screenY,
+ y: pageY - window.scrollY,
168
});
0 commit comments