Skip to content
This repository was archived by the owner on Dec 12, 2022. It is now read-only.

Commit 8d0f659

Browse files
committed
Corrected mouse tracking
1 parent 0bdb391 commit 8d0f659

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ export class HoverPosition {
6868
? {
6969
height: 10,
7070
width: 10,
71-
top: options.anchor.screenX,
72-
left: options.anchor.screenY,
71+
top: options.anchor.pageY,
72+
left: options.anchor.pageX,
7373
}
7474
: {
7575
height: options.anchor.offsetHeight,

0 commit comments

Comments
 (0)