Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ScrollView and ScrollViewer have different scroll speeds #9368

Open
DominicMaas opened this issue Feb 27, 2024 · 2 comments
Open

ScrollView and ScrollViewer have different scroll speeds #9368

DominicMaas opened this issue Feb 27, 2024 · 2 comments
Labels
area-Scrolling bug Something isn't working team-Controls Issue for the Controls team

Comments

@DominicMaas
Copy link

Describe the bug

As title says, when swapping out a ScrollViewer for a ScrollView, the scroll speed is extremely noticeable.

Steps to reproduce the bug

Create a ScrollViewer and ScrollView side-by-side and compare them.

<Grid Margin="10" ColumnSpacing="10">
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="*" />
        <ColumnDefinition Width="*" />
    </Grid.ColumnDefinitions>

    <ScrollView Grid.Column="0">
        <ItemsRepeater x:Name="ItemsControl_ScrollView">
            <ItemsRepeater.ItemTemplate>
                <DataTemplate>
                    <TextBlock Margin="10" Text="{Binding}" />
                </DataTemplate>
            </ItemsRepeater.ItemTemplate>
        </ItemsRepeater>
    </ScrollView>

    <ScrollViewer Grid.Column="1">
        <ItemsRepeater x:Name="ItemsControl_ScrollViewer">
            <ItemsRepeater.ItemTemplate>
                <DataTemplate>
                    <TextBlock Margin="10" Text="{Binding}" />
                </DataTemplate>
            </ItemsRepeater.ItemTemplate>
        </ItemsRepeater>
    </ScrollViewer>

</Grid>

Expected behavior

Either scroll at the same speed or have a ScrollRatio exposed on the new ScrollView control

Screenshots

Recording.2024-02-28.104903.mp4

NuGet package version

WinUI 3 - Windows App SDK 1.4.5: 1.4.240411001

Windows version

Windows 11 (22H2): Build 22621

Additional context

Īs it expected that ScrollView is the eventual replacement for ScrollViewer?

@DominicMaas DominicMaas added the bug Something isn't working label Feb 27, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Feb 27, 2024
Copy link

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. Thank you!

Open similar issues:

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

@bpulliam bpulliam added area-Scrolling team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels Feb 29, 2024
@eduardobragaxz
Copy link

I have to be honest, I prefer the speed of the newer control.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Scrolling bug Something isn't working team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests

3 participants