You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A ListView that has horizontal scrolling active (desired width is greater than the available width) does not allow a parent ScrollViewer to vertically scroll with the mouse wheel.
In my testing, touch pad and touch seem work work, just the mouse scroll wheel exhibits the issue.
Additionally, horizontally scrolling the vertical ScrollViewer using a mouse with a dedicated horizontal scroll wheel causes the viewer to scroll up and down. Not sure if that's related, but something else I observed.
Steps to reproduce the bug
Either add code like the following or run this sample project: ScrollTestWinui.zip
<ScrollViewer>
<StackPanel>
<!-- Extra content to give give the ScrollViewer extra content -->
<ListViewItemsSource="{x:Bind Items}"
ScrollViewer.HorizontalScrollBarVisibility="Auto"
ScrollViewer.HorizontalScrollMode="Auto">
<ListView.ItemTemplate>
<DataTemplatex:DataType="x:String">
<TextBlockText="{x:Bind}" />
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
<!-- Extra content to give give the ScrollViewer extra content -->
</StackPanel>
</ScrollViewer>
Then, size the window such that the ListView does not need to scroll horizontally. Place the cursor on the ListView and try to scroll vertically with your mouse wheel. The parent ScrollViewer should scroll successfully.
Now, size the window such that the ListViewdoes need to scroll horizontally. Place the cursor on the ListView and try to scroll vertically with your mouse wheel. The parent ScrollViewer does not scroll successfully.
Additional Obsevation
Size the window to any size, but place your cursor on the area not included by the ListView. Horizontally scroll with a mouse that has a horizontal scroll wheel. The ScrollViewer scrolls vertically.
Expected behavior
Attempting to vertically scroll when a ListView is not vertically scrollable and is inside of a ScrollViewer should cause the ScrollViewer to scroll
Screenshots
Attached sample project should look like this.
NuGet package version
None
Windows version
No response
Additional context
Using Microsoft.WindowsAppSDK 1.6.240923002
The text was updated successfully, but these errors were encountered:
Describe the bug
A
ListView
that has horizontal scrolling active (desired width is greater than the available width) does not allow a parentScrollViewer
to vertically scroll with the mouse wheel.In my testing, touch pad and touch seem work work, just the mouse scroll wheel exhibits the issue.
Additionally, horizontally scrolling the vertical
ScrollViewer
using a mouse with a dedicated horizontal scroll wheel causes the viewer to scroll up and down. Not sure if that's related, but something else I observed.Steps to reproduce the bug
Either add code like the following or run this sample project: ScrollTestWinui.zip
Then, size the window such that the
ListView
does not need to scroll horizontally. Place the cursor on theListView
and try to scroll vertically with your mouse wheel. The parentScrollViewer
should scroll successfully.Now, size the window such that the
ListView
does need to scroll horizontally. Place the cursor on theListView
and try to scroll vertically with your mouse wheel. The parentScrollViewer
does not scroll successfully.Additional Obsevation
Size the window to any size, but place your cursor on the area not included by the
ListView
. Horizontally scroll with a mouse that has a horizontal scroll wheel. TheScrollViewer
scrolls vertically.Expected behavior
Attempting to vertically scroll when a
ListView
is not vertically scrollable and is inside of aScrollViewer
should cause theScrollViewer
to scrollScreenshots
Attached sample project should look like this.
NuGet package version
None
Windows version
No response
Additional context
Using Microsoft.WindowsAppSDK 1.6.240923002
The text was updated successfully, but these errors were encountered: