Skip to content

Conversation

@maynkxx
Copy link

@maynkxx maynkxx commented Nov 27, 2025

This PR fixes a potential issue with event handling in Canvas.jsx. where elementPointerDown was defined as a local variable. This could lead to the variable being reset or lost during renders, causing issues with drag-and-drop or selection interactions.
The fix involves converting elementPointerDown to a useRef hook, ensuring that the value persists across renders and is correctly accessible in event handlers.

@vercel
Copy link

vercel bot commented Nov 27, 2025

@maynkxx is attempting to deploy a commit to the dottle's projects Team on Vercel.

A member of the Team first needs to authorize it.

@maynkxx
Copy link
Author

maynkxx commented Nov 27, 2025

Hi @1ilit
I’ve opened this PR whenever you have time, please take a look and review it. If there are any questions, suggestions, or changes needed, feel free to let me know. I’ll be happy to update the PR accordingly.

@vercel
Copy link

vercel bot commented Nov 27, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
drawdb Ready Ready Preview Comment Nov 27, 2025 6:30am

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.

1 participant