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.97k stars 730 forks source link

`ListView.ScrollIntoView` never stops scrolling when ItemsSource been set to more than 100 items #12374

Open TCPcloudDEV opened 1 year ago

TCPcloudDEV commented 1 year ago

Current behavior

ListView.ScrollIntoView never stops scrolling when ItemsSource been set to more than 100 items.

I have ItemsSource as List<KeyValuePair<string, string>>

and

<ListView DisplayMemberPath="Value" IsItemClickEnabled="True" IsRightTapEnabled="False" IsHoldingEnabled="False" IsDoubleTapEnabled="False"

Expected behavior

scroll to selected item and stop

How to reproduce it (as minimally and precisely as possible)

No response

Workaround

No response

Works on UWP/WinUI

Works on UWP as expected

Environment

No response

NuGet package version(s)

No response

Affected platforms

Droid

IDE

Microsoft Visual Studio Community 2022

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

jeromelaban commented 1 year ago

Thanks for the report. Could you attach a zip file with a repro app so we're sure to discuss the same issue?

TCPcloudDEV commented 1 year ago

see my test example.

UnoApp1.zip

dr1rrb commented 1 year ago

Hey @TCPcloudDEV thanks for the report and the sample 👍. For the next time, when you create a repro app, please do not remove any target (and especially Skia). Even if it does not compile, it's easier for us to check on all platforms.

dr1rrb commented 1 year ago

Hey @Xiaoy312 this seems to be linked to https://github.com/unoplatform/uno/pull/11962 that you looked at recently with @ajpinedam

Xiaoy312 commented 1 year ago

the issue is android specific, (not reproducible on ios, and not implemented on other platforms...) related to #11962, but not necessarily a direct cause of this issue? note: VirtualizingPanelSmoothScroller is likely the area to look for