Skip to content

fix: add mouse down - #3270

Merged
felixfeng33 merged 2 commits into
mainfrom
fix/toolbar
Jun 12, 2024
Merged

fix: add mouse down#3270
felixfeng33 merged 2 commits into
mainfrom
fix/toolbar

Conversation

@felixfeng33

@felixfeng33 felixfeng33 commented Jun 12, 2024

Copy link
Copy Markdown
Collaborator

@changeset-bot

changeset-bot Bot commented Jun 12, 2024

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c1b04f8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@udecode/plate-floating Patch
@udecode/plate-link Patch
@udecode/plate Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercel Bot commented Jun 12, 2024

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
plate ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 12, 2024 7:28am

@felixfeng33

felixfeng33 commented Jun 12, 2024

Copy link
Copy Markdown
Collaborator Author
re.mp4

Based on your suggestion, I made some changes.right now will close when mousedown && !open
However, it seems I cannot remove the dependency on mouseup event because I don't have a suitable opportunity to reset mousedown to false. may could fix #3268 @12joan

@12joan

12joan commented Jun 12, 2024

Copy link
Copy Markdown
Collaborator

@felixfeng33 Thanks! Depending on mouseup is fine so long as it doesn't interfere with other input methods. The goal is for the mouse-related code to be inert for non-mouse users, so rather than expecting a mousedown or mouseup event, we handle it if it arises.

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