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
21.84k stars 1.67k forks source link

Scrollview.ScrollTo execution only returns after manual scroll #15508

Open sjorsmiltenburg opened 1 year ago

sjorsmiltenburg commented 1 year ago

Description

When I call Scrollview.ScrollTo, the code after this call does not get executed. Only when I manually scroll, the code continues from after this call.

Code execution does not get blocked if you first manually scroll, and then call ScrollTo.

See attached example - Bug 2

Steps to Reproduce

compile and run project for windows Press Bug2 to see the behaviour in action

Link to public reproduction project repository

https://github.com/sjorsmiltenburg/maui_bugs

Version with bug

8.0.0-preview.4.8333

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

windows

Did you find any workaround?

no

Relevant log output

No response

ghost commented 1 year ago

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

PureWeen commented 1 year ago

@sjorsmiltenburg do you know if this worked on NET7?

sjorsmiltenburg commented 1 year ago

@PureWeen No it did not, thats why I tested it in my "bugs" application running the lastest preview version. It did work in Xamarin Forms though

XamlTest commented 8 months ago

Verified this on Visual Studio Enterprise 17.8.0 Preview 4.0(8.0.0-rc.2.9373). Repro on Windows 11, not repro on Android 13.0-API33 with below Project: maui_bugs.zip Scroll

DennisWelu commented 1 month ago

Just observed this same issue, latest of everything as of this date

sjorsmiltenburg commented 1 month ago

This issue is preventing me to move to Maui If there is a workaround I sure would love to know about it.

sjorsmiltenburg commented 1 month ago

Additional info:

I've updated the sample

sjorsmiltenburg commented 4 weeks ago

I have updated the sample to the latest .net 9 preview and maui preview version. Still broken.