Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add mousedown and mouseup event #172

Merged
merged 3 commits into from
Dec 30, 2024

Conversation

luoxiaozero
Copy link
Contributor

Click events are triggered after the mouse is pressed and released, and on the same node.

@luoxiaozero luoxiaozero marked this pull request as ready for review December 27, 2024 01:24
@mogambro
Copy link
Contributor

Is unactive an English word? I am a non native speaker, sorry for the stupid question. I know inactive and to deactivate but unactive is new to me

@luoxiaozero
Copy link
Contributor Author

No, I just kept the same naming convention as unhover. But I am very open to renaming variables.

Copy link
Collaborator

@nicoburns nicoburns left a comment

Choose a reason for hiding this comment

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

We'll need to think much more carefully about the interaction between:

  • Handling events in dioxus vs. in DOM
  • Bubbling events
  • Triggering events based on other events (e.g. mousedown+mouseup triggering click, click sometimes triggering input or focus)

But this seems ok for now.

@nicoburns
Copy link
Collaborator

Be cool to get mousemove working as well. Then we could do mouse selection in text inputs!

@nicoburns nicoburns merged commit 86cca2f into DioxusLabs:main Dec 30, 2024
7 checks passed
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.

3 participants