microsoft / microsoft/microsoft-ui-xaml

No simple way to have ItemsView scroll horizontally via mouse wheel

Open
#11,220 2 comments 0 reactions 0 assignees View on GitHub
area-ItemsView bug
Dominant language
C++
Stars
8.4k
Forks
942
Avg merge
2d 7h
Merged PRs (30d)
105

Description

### Describe the bug

See attached project. With scrollviewer, horizontal scroll is trivial via mousewheel. With itemsview, setting the same properties does not work.

[HorizontalItemsViewApp (2).zip](https://github.com/user-attachments/files/29636195/HorizontalItemsViewApp.2.zip)

### Why is this important?

Horizontal scroll is not that uncommon to be needed

### Steps to reproduce the bug

1. Create an itemsview with horizontal layout
2. Try adjusting ScrollView to horizontally scroll using mousewheel. Observe that not working.

### Actual behavior

Mouse wheel on horizontal ItemsView does nothing.

### Expected behavior

It doesn't, it's a NOOP even if vertical scroll is disabled.

### Screenshots

_No response_

### NuGet package version

2.2.0

### Windows version

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the attached HorizontalItemsViewApp repro and inspect how ItemsView is configured with a horizontal layout and how its ScrollView handles mouse-wheel input. Compare that behavior with the working ScrollViewer case described in the issue. Done means horizontal ItemsView content scrolls via the mouse wheel when vertical scrolling is disabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.