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

ei: Fix flipped scroll axes #406

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

Conversation

tadeokondrak
Copy link
Contributor

This allows for emulating ordinary vertical scrolling with libei. I think horizontal scrolling might be broken due to this but I haven't looked into that yet.

@mahkoh
Copy link
Owner

mahkoh commented Mar 14, 2025

I think the better solution is to remove the uses of the magic numbers 0 and 1 and replace them with the VERTICAL_SCROLL and HORIZONTAL_SCROLL constants. Outgoing EI messages are broken in the same way as far as I can tell.

@tadeokondrak tadeokondrak force-pushed the ei-scroll-axes branch 2 times, most recently from 004641d to 490eb5b Compare March 14, 2025 20:31
@mahkoh
Copy link
Owner

mahkoh commented Mar 20, 2025

I've added some additional changes to make handling of axes more robust. Please test the current version.

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.

2 participants