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

mouse_scroll_y direction is backwards on Windows #117

Closed
elidupree opened this issue Feb 11, 2022 · 0 comments · Fixed by #143
Closed

mouse_scroll_y direction is backwards on Windows #117

elidupree opened this issue Feb 11, 2022 · 0 comments · Fixed by #143

Comments

@elidupree
Copy link

Currently, the behavior of mouse_scroll_y is inconsistent (going in opposite directions) between Linux and Windows.

The Enigo docs state "Positive numbers for length lets the mouse wheel scroll down and negative ones up". On my Linux and Windows computers, this is behaving correctly on Linux, but backwards on Windows.

Note that these Windows API docs state "A positive value indicates that the wheel was rotated forward, away from the user; a negative value indicates that the wheel was rotated backward, toward the user." This is opposite from Enigo's choice of direction, so the length argument needs to be negated when we call into the Windows API in in win_impl.rs.

BrettMayson added a commit to BrettMayson/enigo that referenced this issue Jan 26, 2023
pentamassiv pushed a commit to pentamassiv/enigo that referenced this issue Feb 5, 2023
pentamassiv added a commit to pentamassiv/enigo that referenced this issue Feb 12, 2023
pentamassiv added a commit to pentamassiv/enigo that referenced this issue Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant