Skip to content

fix: update handleMouseEnter to capture mouse coordinates#736

Merged
dillionverma merged 1 commit intomagicuidesign:mainfrom
hrtn:hrtn-pointer-update
Aug 6, 2025
Merged

fix: update handleMouseEnter to capture mouse coordinates#736
dillionverma merged 1 commit intomagicuidesign:mainfrom
hrtn:hrtn-pointer-update

Conversation

@hrtn
Copy link
Contributor

@hrtn hrtn commented Aug 3, 2025

If the pointer is shown without changing the cursor position after opening the screen, the mouse cursor appears at the top-left corner (x=0, y=0). So I updated the handleMouseEnter function to accept a MouseEvent parameter, allowing it to set the x and y coordinates based on the mouse position when the pointer enters the element.

Before

CleanShot.2025-08-03.at.10.08.15.mp4

After

CleanShot.2025-08-03.at.10.12.05.mp4

@vercel
Copy link

vercel bot commented Aug 3, 2025

@hrtn is attempting to deploy a commit to the product-studio Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Collaborator

@dillionverma dillionverma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@dillionverma dillionverma merged commit 28d1dd3 into magicuidesign:main Aug 6, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants