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

Check the mouse position for the on click event #6

Closed
Ganbin opened this issue Jul 15, 2020 · 4 comments
Closed

Check the mouse position for the on click event #6

Ganbin opened this issue Jul 15, 2020 · 4 comments

Comments

@Ganbin
Copy link
Member

Ganbin commented Jul 15, 2020

Add the check to know if the mouse is still on the button for the On Mouse Up Callback (on click)

@Zankorius
Copy link

C'est fait au niveau du draw de l'objet dans l'event mouse up, pourquoi tu en as besoin au niveau du callback ?

@Ganbin
Copy link
Member Author

Ganbin commented Jul 29, 2020

Si on click sur un bouton, mais que l'on ne relache pas le click, et qu'on sort du bouton, sa ne devrait pas déclencher la callback. Comme sur un bouton sur le web. Essaye par exemple le bouton "New Issue" sur GitHub, si tu clic et sort du bouton et relache le click, cela ne declenche pas l'action.

@Zankorius
Copy link

Ok, je voulais être juste sur que ça avait rien avoir avec la partie draw, merci

@Zankorius
Copy link

Ceci est implémenté et testable sur le lab

@Ganbin Ganbin closed this as completed Jun 10, 2022
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

No branches or pull requests

2 participants