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

Use signed coordinates for mouse events #670

Open
wants to merge 22 commits into
base: master
Choose a base branch
from

Conversation

gerhardberger
Copy link

This PR changes mouse click/toggle/doubleclick coordinate calculation to signed version. Previously it was unsigned, which caused click events to register at incorrect positions, if the click happened at a negative coordinate value, which can happen in macOS's screen coordinate system.

@nickretallack
Copy link

nickretallack commented Sep 29, 2021

I tested this out on my mac and it works great! Thanks!

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.

5 participants