Skip to content

feat(framebuffer): Reverse default mouse wheel direction and add ReverseMouseWheel option - #22924

Merged
MartinZikmund merged 2 commits into
unoplatform:masterfrom
ramezgerges:dev/fb-reverse-mousewheel
Apr 1, 2026
Merged

MartinZikmund merged 2 commits into
unoplatform:masterfrom
ramezgerges:dev/fb-reverse-mousewheel

Conversation

@ramezgerges

@ramezgerges ramezgerges commented Mar 30, 2026 •

Copy link
Copy Markdown
Contributor

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:

Other information ℹ️

ramezgerges and others added 2 commits March 30, 2026 16:47
…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]>
Copilot AI review requested due to automatic review settings March 30, 2026 17:18
@github-actions github-actions Bot added area/skia ✏️ Categorizes an issue or PR as relevant to Skia kind/documentation labels Mar 30, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 into FrameBufferPointerInputSource.
  • 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.

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 204544 has failed on Uno.UI - CI.

@MartinZikmund
MartinZikmund merged commit 6b4f8c3 into unoplatform:master Apr 1, 2026
47 checks passed
@ramezgerges
ramezgerges deleted the dev/fb-reverse-mousewheel branch April 2, 2026 23:41
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area/skia ✏️ Categorizes an issue or PR as relevant to Skia kind/documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Skia.LinuxFramebuffer] mouse wheel scroll directions are inverted

4 participants