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

FIX: cancel post toolbar on click outside #23546

Merged
merged 2 commits into from Sep 12, 2023

Conversation

jjaffeux
Copy link
Contributor

@jjaffeux jjaffeux commented Sep 12, 2023

On mousedown if the click is outside a cooked element cancel the mousedown/mouseup sequence and only rely on the selectionchange event.

This change ensures a click on avatar for example will work, even if user is doing a rather slow click (meaning: the mousedown has been hold for more than 100ms).

On `mousedown` if the click is outside a cooked element cancel the `mousedown`/`mouseup` sequence and only rely on the `selectionchange` event.

This change ensures a click on avatar for example will work, even if user is doing a rather slow slick (meaning: the mousedown has been hold for more than 100ms).
@jjaffeux jjaffeux merged commit a32fa3b into discourse:main Sep 12, 2023
17 checks passed
@jjaffeux jjaffeux deleted the post-toolbar-fix-1 branch September 12, 2023 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants