Skip to content

Fix color picker closing on mouse leave - #1152

Open
Nityam43 wants to merge 1 commit into
drawdb-io:mainfrom
Nityam43:fix/color-picker-boundary
Open

Nityam43 wants to merge 1 commit into
drawdb-io:mainfrom
Nityam43:fix/color-picker-boundary

Conversation

@Nityam43

Copy link
Copy Markdown

Title: fix: prevent color picker from closing on mouse leave

📝 Summary

Resolves #1147 by removing the onMouseLeave event handler from the ColorPicker wrapper.

🛠️ Changes Made

  • Removed onMouseLeave={handleColorPick} from the outer div.
  • The color picker now remains open when dragging the cursor outside its boundary to select edge-case colors on the canvas.
  • Intentional commits and outside clicks are still properly handled by the existing onPointerUp and onBlur events.

Closes #1147

@vercel

vercel Bot commented Sep 23, 2026

Copy link
Copy Markdown

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

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
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.

[BUG] Colour picker closes when cursor moves outside its boundary

1 participant