Skip to content

Commit

Permalink
fix: use pointermove event over mousemove
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieljablonski committed Jan 15, 2024
1 parent adcecb1 commit 8eff46b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Tooltip/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ const Tooltip = ({
})
}

const handleMouseMove = (event?: Event) => {
const handlePointerMove = (event?: Event) => {
if (!event) {
return
}
Expand Down Expand Up @@ -560,8 +560,8 @@ const Tooltip = ({

if (float) {
enabledEvents.push({
event: 'mousemove',
listener: handleMouseMove,
event: 'pointermove',
listener: handlePointerMove,
})
}

Expand Down

0 comments on commit 8eff46b

Please sign in to comment.