Skip to content

Commit 8eff46b

Browse files
fix: use pointermove event over mousemove
1 parent adcecb1 commit 8eff46b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/components/Tooltip/Tooltip.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ const Tooltip = ({
338338
})
339339
}
340340

341-
const handleMouseMove = (event?: Event) => {
341+
const handlePointerMove = (event?: Event) => {
342342
if (!event) {
343343
return
344344
}
@@ -560,8 +560,8 @@ const Tooltip = ({
560560

561561
if (float) {
562562
enabledEvents.push({
563-
event: 'mousemove',
564-
listener: handleMouseMove,
563+
event: 'pointermove',
564+
listener: handlePointerMove,
565565
})
566566
}
567567

0 commit comments

Comments
 (0)