Skip to content

Horizontal and precision scrolling support #22

Open
flyingsolomon wants to merge 5 commits into4coder-community:developfrom
flyingsolomon:fix-scroll
Open

Horizontal and precision scrolling support #22
flyingsolomon wants to merge 5 commits into4coder-community:developfrom
flyingsolomon:fix-scroll

Conversation

@flyingsolomon
Copy link
Contributor

This is the bare minimum for proper scrolling support, however I don't have a mac or a linux setup so it is tested only on windows and doesn't compile on the other platforms.

@flyingsolomon flyingsolomon changed the title Added better support for scrolling on windows Better scrolling support (for Windows) Jan 13, 2025
@zhedye
Copy link
Contributor

zhedye commented Mar 14, 2025

Is the problem that scrolling doesn't support an x axis? How would you test this on a computer? How do I horizontally scroll?

@eddi3v
Copy link

eddi3v commented Apr 2, 2025

Is the problem that scrolling doesn't support an x axis? How would you test this on a computer? How do I horizontally scroll?

I have an mx master 3s which has a side-scroll on the mouse. I can test this if needed.

@zhedye
Copy link
Contributor

zhedye commented Apr 2, 2025

Thanks for offering to help.

There was a discussion about delaying this patch until a new release version comes out: https://discord.com/channels/657067375681863699/1033468092950528041/1350503994270945341

@flyingsolomon flyingsolomon changed the base branch from master to develop January 15, 2026 14:58
@flyingsolomon flyingsolomon changed the title Better scrolling support (for Windows) Horizontal and precision scrolling support Feb 28, 2026
@flyingsolomon
Copy link
Contributor Author

The state of things:
Horizontal scroll works on Windows and on Linux, untested on mac
Precise scroll works on Windows, not on Linux, untested on mac

Getting precise values out of scroll events using XLib is apparently very complicated and I have yet to find a simple way to do it, so for now I left fixed values for scroll increments there.
Horizontal scroll using XLib uses undocumented but seemingly standard button values.

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.

3 participants