unoplatform / uno

Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
https://platform.uno
Apache License 2.0
8.81k stars 708 forks source link

[Skia] Pivot completely scrolls when using the mouse wheel #9146

Open jeromelaban opened 2 years ago

jeromelaban commented 2 years ago

Originally posted by @NicoAICP in https://github.com/unoplatform/uno/discussions/9032

If i use a Pivot item from the WinUI 2 stuff, i always get the issue in Skia.GTK (not in UWP) that if i scroll while having a pivot element close to me, it scrolls away the pivot element (as if i had an big webpage that i could scroll left and right, and i scroll away from the pivot)

Repro

   <Pivot Title="Pivot Control Sample">
        <Pivot.Items>
            <PivotItem Header="Pivot Item 1">
                <Grid>
                    <TextBlock Text="Item 1 Content" />
                </Grid>
            </PivotItem>
            <PivotItem Header="Pivot Item 2">
                <StackPanel>
                    <TextBlock Text="Item 2 Content" />
                    <TextBlock Text="http://windowsapptutorials.wordpress.com/"
                               FontStyle="Italic"
                               Foreground="#FF2975D1"></TextBlock>
                </StackPanel>
            </PivotItem>
        </Pivot.Items>
    </Pivot>
ramezgerges commented 1 year ago

It seems like we have a bunch of problems with Pivots:

MartinZikmund commented 1 year ago

I think overall it would be worth porting the full control as there is a big number of backlog items for Pivot