microsoft / microsoft/microsoft-ui-xaml

Unable to scroll in horizontal ItemsView using mouse wheel

Open
#10,607 5 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-Scrolling bug
Dominant language
C++
Stars
8.4k
Forks
942
Avg merge
2d 7h
Merged PRs (30d)
105

Description

Describe the bug

When setting up a ItemsView with a StackLayout that has Orientation="Horizontal" set, I cannot scroll through the list using the mouse wheel. This was and is possible with ListView when using a ItemsStackPanel with Orientation="Horizontal"

Steps to reproduce the bug
<ItemsView>
  <ItemsView.Layout>
    <StackLayout Orientation="Horizontal"  />
  </ItemsView.Layout>
...
</ItemsView>
Expected behavior

I can scroll through the list using the mouse wheel

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.7.2: 1.7.250513003

Windows version

Windows 11 (24H2): Build 26100

Additional context

This bug report is likely related: https://github.com/dotnet/maui/issues/22680

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named; start by reproducing the XAML example on WinUI 3 and Windows App SDK 1.7.2, then trace ItemsView's horizontal StackLayout input and scrolling behavior. Compare with ListView using a horizontal ItemsStackPanel and review related issue #22680. Done means mouse-wheel input scrolls the horizontal ItemsView.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.