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

Control background click mouse events #523

Merged
merged 2 commits into from
Oct 2, 2023
Merged

Conversation

gian7sm
Copy link
Contributor

@gian7sm gian7sm commented Jun 23, 2023

Mouse click, down, and up events will be handled to avoid closing the modal by accident. This avoids accidents when highlighting text and dragging the mouse cursor outside of the modal area (into the background).

Resolves #518

This also allows the user to escape closing the modal by dragging the mouse click back into the modal content area.

Mouse click, down, and up events will be handled to avoid closing the modal by accident.
This avoids accidents when highlighting text and dragging the mouse cursor outside of the modal area (into the background).

Solves Blazored#518

This also allows the user to escape closing the modal by dragging the mouse click back into the modal content area.
@gian7sm
Copy link
Contributor Author

gian7sm commented Jun 23, 2023

Credits and thanks for the code changes to @HarrisonCF !

@lofcz
Copy link
Contributor

lofcz commented Jul 16, 2023

Great, cherry-picked this into my branch!

@chrissainty chrissainty merged commit 6b30fd0 into Blazored:main Oct 2, 2023
2 checks passed
@chrissainty chrissainty added the Bug Something isn't working label Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Blackground click is always triggered by mouse up
3 participants