Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mat007
Copy link
Contributor

@mat007 mat007 commented Aug 21, 2023

With

go run ./_examples/widget_demos/button/

if we press the mouse button outside the button, keep it pressed, then move the cursor to the button, and release the mouse button, then the button gets triggered and the console displays

button clicked

This is a really surprising and non usual behaviour. This pull request addresses this by making the button firing the released event only if it was pressed. This works independently of the fact that the mouse cursor leaves the button or not in-between.

@mcarpenter622 mcarpenter622 merged commit 7883221 into ebitenui:master Aug 23, 2023
@mcarpenter622
Copy link
Collaborator

Thank you!

@mat007 mat007 mentioned this pull request Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants