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

Generate MouseUp events #1968

Merged
merged 5 commits into from
Mar 9, 2023
Merged

Generate MouseUp events #1968

merged 5 commits into from
Mar 9, 2023

Conversation

darrenburns
Copy link
Member

@darrenburns darrenburns commented Mar 7, 2023

Please review the following checklist.

  • Docstrings on all new or modified functions / classes
  • Updated documentation
  • Updated CHANGELOG.md (where appropriate)

@darrenburns darrenburns force-pushed the generate-mouseup-events branch from ea5c6df to 5326ac9 Compare March 7, 2023 15:46
@darrenburns darrenburns marked this pull request as ready for review March 7, 2023 15:50
Copy link
Collaborator

@willmcgugan willmcgugan left a 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.

y=event.y,
delta_x=event.delta_x,
delta_y=event.delta_y,
button=0,
Copy link
Collaborator

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.

Copy link
Contributor

@rodrigogiraoserrao rodrigogiraoserrao left a 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?

@davep
Copy link
Contributor

davep commented Mar 8, 2023

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.

@willmcgugan
Copy link
Collaborator

Yeah, that looks to be the case. Could use a test on Windows just to be sure.

@darrenburns darrenburns requested a review from willmcgugan March 8, 2023 14:13
@willmcgugan willmcgugan merged commit f929e13 into main Mar 9, 2023
@willmcgugan willmcgugan deleted the generate-mouseup-events branch March 9, 2023 11:56
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

Successfully merging this pull request may close these issues.

4 participants