dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.21k stars 1.75k forks source link

[Windows] Horizontal Scrollview and StackLayout not scrolling with mouse scroll wheel #22680

Open zenith6495 opened 5 months ago

zenith6495 commented 5 months ago

Description

Horizontal ScrollView is not working properly with Horizontal StackLayout Bindable Layout, the scrollbar does appear but unable to scroll with mouse scroll wheel.

    <ScrollView Orientation="Horizontal">
        <HorizontalStackLayout BindableLayout.ItemsSource="{Binding PrinterList}">
            <BindableLayout.ItemTemplate>
                <DataTemplate x:DataType="m:Printer">
                    <Frame>
                        <Label Text="{Binding Name}" />
                    </Frame>
                </DataTemplate>
            </BindableLayout.ItemTemplate>
        </HorizontalStackLayout>
    </ScrollView>

Steps to Reproduce

Use a Horizontal Scrollview with Horizontal StackLayout to see the issue.

Link to public reproduction project repository

No response

Version with bug

8.0.40 SR5

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

No response

Did you find any workaround?

CollectionView can scroll horizontally, but unable to set padding. Thus, I need to use Horizontal scrollview with horizontal stacklayout.

Relevant log output

No response

github-actions[bot] commented 5 months ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

kevinxufei commented 5 months ago

Verified this issue with Visual Studio 17.11.0 Preview 1.0 ( 8.0.40/8.0.21) Can repro it on windows platform.