Skip to content

Commit

Permalink
Merge pull request #29968 from akamefi202/clipboard-tooltip-position
Browse files Browse the repository at this point in the history
update updateTargetAndMousePosition function
  • Loading branch information
grgia authored Oct 19, 2023
2 parents 69ad7bd + c73b62f commit b3c4419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Tooltip/BaseTooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function Tooltip({children, numberOfLines, maxWidth, text, renderTooltipContent,
const initialMousePosition = useRef({x: 0, y: 0});

const updateTargetAndMousePosition = useCallback((e) => {
target.current = e.target;
target.current = e.currentTarget;
initialMousePosition.current = {x: e.clientX, y: e.clientY};
}, []);

Expand Down

0 comments on commit b3c4419

Please sign in to comment.