Skip to content

Commit

Permalink
Fix tooltips (#10598)
Browse files Browse the repository at this point in the history
  • Loading branch information
hbenl authored Jul 5, 2024
1 parent 2f13eb9 commit 3cdee91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/replay-next/src/hooks/useTooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export default function useTooltip({

const onMouseEnter = (event: MouseEvent) => {
setClientX(event.clientX);
setClientX(event.clientY);
setClientY(event.clientY);
setMouseTarget(event.currentTarget as HTMLElement);

if (delay === 0) {
Expand All @@ -173,7 +173,7 @@ export default function useTooltip({

const onMouseLeave = (event: MouseEvent) => {
setClientX(null);
setClientX(null);
setClientY(null);
setMouseTarget(null);
setShowTooltip(false);
setShowTooltipDebounced.cancel();
Expand All @@ -185,7 +185,7 @@ export default function useTooltip({
}

setClientX(event.clientX);
setClientX(event.clientY);
setClientY(event.clientY);
};

return { onMouseEnter, onMouseLeave, onMouseMove, tooltip: renderedTooltip };
Expand Down

0 comments on commit 3cdee91

Please sign in to comment.