-
Notifications
You must be signed in to change notification settings - Fork 700
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
Fixes #3374 - Curses
and Net
drivers don't generate click events unless mouse has not moved
#3375
Conversation
@BDisp - I suspect you have more knowledge of this than I. Do you have any suggestions on how to address this? |
The clicked event is only generated if the mouse location is the same on the buttonPressed and buttonReleased. This is the normal behavior of the clicked event. If you press the mouse button and move the mouse keeping the button pressed, when you release the button the location isn't the same and thus the clicked event isn't processed. This allows a user cancel a click event if the button was pressed and then regret do it and move the mouse to another place and release it avoiding a clicked event. |
I'm not sure I love the logic you've described. It means that the user has to hold the mouse perfectly still to cause a clicked event. However, we can debate that another day. Please try the steps I outlined in #3374 - You'll see that even though the mouse is perfectly still, pressing the button and releasing it does not cause either driver to receive a clicked event. |
The bug is in this line. The
To fix change to:
|
I hope you consider this because many app use that behavior and prevents many times when accidently press a button and avoiding the clicked after moving the mouse. If a user want to catch all the clicks he can use the |
Lets discuss this here: |
Stale. Closing. |
Fixes
Button1Clicked
events onNetdriver
orCursesDriver
#3374Proposed Changes/Todos
Pull Request checklist:
CTRL-K-D
to automatically reformat your files before committing.dotnet test
before commit///
style comments)