Repository navigation
feat(framebuffer): Reverse default mouse wheel direction and add ReverseMouseWheel option - #22924
Conversation
…rseMouseWheel option Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Documents all FramebufferHostBuilder options: mouse cursor, mouse wheel direction, display orientation, KMS/DRM rendering, and XKB keyboard layout. Also fixes misplaced XML doc comment on ReverseMouseWheel. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
There was a problem hiding this comment.
Pull request overview
Adds a Linux FrameBuffer (Skia) configuration option to control mouse wheel scroll direction by inverting libinput’s raw wheel deltas by default and allowing an opt-out via the host builder.
Changes:
- Apply a configurable wheel delta multiplier when translating libinput axis events to
PointerWheelChanged. - Introduce
FramebufferHostBuilder.ReverseMouseWheel(...)and plumb the option intoFrameBufferPointerInputSource. - Expand Linux FrameBuffer documentation with a new “Configuration Options” section covering cursor, wheel direction, orientation, DRM, and keymap.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| src/Uno.UI.Runtime.Skia.Linux.FrameBuffer/Hosting/FramebufferHost.cs | Wires host builder’s wheel direction option into the pointer input source during initialization. |
| src/Uno.UI.Runtime.Skia.Linux.FrameBuffer/Devices/Input/FrameBufferPointerInputSource.Mouse.cs | Applies wheel delta sign inversion by default, with an internal flag to use raw deltas. |
| src/Uno.UI.Runtime.Skia.Linux.FrameBuffer/Builder/FramebufferHostBuilder.cs | Adds ReverseMouseWheel builder API and stores the option for host initialization. |
| doc/articles/features/using-linux-framebuffer.md | Documents new configuration options and provides usage examples. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-22924/docs/index.html |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22924/wasm-skia-net9/index.html |
|
|
GitHub Issue: closes #22008
PR Type:
What is the current behavior? 🤔
What is the new behavior? 🚀
PR Checklist ✅
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Runresults.Other information ℹ️