-
Notifications
You must be signed in to change notification settings - Fork 841
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
Generate MouseUp events #1968
Generate MouseUp events #1968
Conversation
ea5c6df
to
5326ac9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there is a little more to this one.
src/textual/driver.py
Outdated
y=event.y, | ||
delta_x=event.delta_x, | ||
delta_y=event.delta_y, | ||
button=0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that MouseUp.button
should be 0
here. It should be the index of the button that was down in the corresponding MouseDown
event.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why don't we need to also modify the windows_driver.py
implementation?
@rodrigogiraoserrao Not speaking for Darren, of course, but as I look at the changes they're in the core driver, not any platform-specific driver. The only change I see to the Linux driver is to remove an unused import. |
Yeah, that looks to be the case. Could use a test on Windows just to be sure. |
Please review the following checklist.