-
Notifications
You must be signed in to change notification settings - Fork 703
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
Button clicked event is raised even with mouse button pressed on another view. #3392
Comments
This code isn't totally correct. The The line |
Another issue is when the mouse button is pressed on a Button and kept pressed move to another Button and release the mouse. The clicked event isn't executed and this is good, but if you press and release the mouse in the second button nothing happen. Only on the second mouse press and release the clicked event is processed. |
The cause is: Another way to reproduce it:
Expected:
Actual:
Closing as duplicate. |
Describe the bug
The clicked event should only occur if the view mouse button was pressed and released on the same view, not at same same coordinates as it happened previously. The terminal mouse API should raise the clicked event but is View responsibility to send it to the valid view. The terminal mouse API don't know about the View class and only send the clicked event because a Pressed+Release mouse button occurred.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The clicked event should not occurred.
The text was updated successfully, but these errors were encountered: