Skip to content

[WASM][Desktop][ScrollViewer] Unable to Scroll Horizontally with Mouse Wheel #19504

@erikvilima

Description

@erikvilima

Current behavior

When using the ScrollViewer on a WASM or Desktop (tested on Windows only) platform, horizontal scrolling via the mouse wheel is not functioning as expected. It works on WinAppSdk.

Expected behavior

Horizontal scrolling should work when using the mouse wheel to navigate horizontally within the ScrollViewer (if the content overflows horizontally).

How to reproduce it (as minimally and precisely as possible)

Repro app: UnoApp5.zip

  1. Add a ScrollViewer element with horizontal content (e.g., a horizontally scrolling ItemsRepeater or other horizontally overflowing content).
  2. Use the mouse wheel to attempt horizontal scrolling.
  3. Notice that the horizontal scroll does not occur, even though the vertical scroll works as intended.

Workaround

None

Works on UWP/WinUI

Yes

Environment

Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia

NuGet package version(s)

Uno.Sdk: 5.7.0-dev.120

Affected platforms

  • WASM
  • Desktop

IDE

Visual Studio 2022

IDE version

17.12.4

Metadata

Metadata

Assignees

Labels

area/skia ✏️Categorizes an issue or PR as relevant to Skiakind/bugSomething isn't workingplatform/wasm 🌐Categorizes an issue or PR as relevant to the WebAssembly platform

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions