rust-windowing / rust-windowing/winit
On macOS, holding shift while scrolling a three-button mouse results in horizontal scrolling...
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 6.2k
- Forks
- 1.3k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 9
Description
... which is usually the desired behavior (this is a macOS thing, not a winit thing), however it's inconvenient for things like games. I'm not sure what the best solution for this is. It would be really nice to be able to use some sort of "raw" flag which would disable this behavior, maybe by overriding the scroll event method or something? I spent a little bit of time looking into it, but these sort of low level macOS things are a bit over my head at the moment, especially when doing them from Rust 😅
Alternatively, it would maybe be possible to use some sort of device info query to detect when this should be overriden either by winit or in a client application, but I'm not sure how to turn a DeviceId into something I could use to query that info or vice-versa.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file or test is named. Start by locating winit's macOS scroll-event handling and the DeviceId/device-info path, then clarify whether a raw-scroll option belongs in the API or platform implementation. Done means defining and validating a way to preserve vertical scrolling for the described mouse input without disrupting normal macOS behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, rust
- Domain
- desktop, operating-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100