From 8eff46b66a6ac2e109ff6a84d1e4a5a4205fec15 Mon Sep 17 00:00:00 2001 From: gabrieljablonski Date: Fri, 5 Jan 2024 11:08:43 -0300 Subject: [PATCH] fix: use `pointermove` event over `mousemove` --- src/components/Tooltip/Tooltip.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Tooltip/Tooltip.tsx b/src/components/Tooltip/Tooltip.tsx index 4b6a9a06..280da9f8 100644 --- a/src/components/Tooltip/Tooltip.tsx +++ b/src/components/Tooltip/Tooltip.tsx @@ -338,7 +338,7 @@ const Tooltip = ({ }) } - const handleMouseMove = (event?: Event) => { + const handlePointerMove = (event?: Event) => { if (!event) { return } @@ -560,8 +560,8 @@ const Tooltip = ({ if (float) { enabledEvents.push({ - event: 'mousemove', - listener: handleMouseMove, + event: 'pointermove', + listener: handlePointerMove, }) }