ScrollView.ScrollToAsync(x, y false) returns before scroll is completed (when #7295
Labels
area-controls-scrollview
ScrollView
fixed-in-7.0.96
Look for this fix in 7.0.96 SR8!
fixed-in-7.0.100
fixed-in-7.0.101
fixed-in-8.0.0-rc.1.9171
Look for this fix in 8.0.0-rc.1.9171
p/1
Work that is important, and has been scheduled for release in this or an upcoming sprint
partner/cat 😻
this is an issue that impacts one of our partners or a customer our advisory team is engaged with
platform/android 🤖
platform/iOS 🍎
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
As shown in the repro sample, ScrollView.ScrollToAsync(,,false) returns immediately and before the actual scroll is completed.
When scrolling with animation enabled things appear to work better and the await completes at least very close to the end of the scroll (not sure it's the actual end either).
Steps to Reproduce
The await should only complete after the scroll itself is completed. This causes various issue including breaking code when trying to chain scrolls.
If the current behavior is intended then the documentation should clearly state the limitation/bug since the current behavior is unexpected and problematic.
layoutbug16.zip
Version with bug
Release Candidate 3 (current)
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android, I was not able test on other platforms
Affected platform versions
Android 11, iOS 15
Did you find any workaround?
Add "await Task.Delay{100}" after the scroll but this is a terrible kludge.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: