maui icon indicating copy to clipboard operation
maui copied to clipboard

ScrollToAsync does not work on nested ScrollView in Android

Open Manish-Pradhan-FP opened this issue 7 months ago • 2 comments

Description

ScrollToAsync does not work on nested ScrollView in Android. This used to work in Xamarin. No error is thrown, just does not do anything.

Tested on Version 8.0.100

Steps to Reproduce

<ScrollView> <ScrollView x:Name="InnerScrollView"></ScrollView> </ScrollView> await InnerScrollView.ScrollToAsync(0, 0, false); // <- this does not work unless the parent ScrollView is removed.

Link to public reproduction project repository

No response

Version with bug

8.0.5

Is this a regression from previous behavior?

Yes, this used to work in Xamarin.Forms

Last version that worked well

Unknown/Other

Affected platforms

Android, I was not able test on other platforms

Affected platform versions

Android 34

Did you find any workaround?

No

Relevant log output

No response

Manish-Pradhan-FP avatar Jan 11 '24 16:01 Manish-Pradhan-FP

Hi @Manish-Pradhan-FP. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

ghost avatar Jan 11 '24 19:01 ghost

Here is the repro - https://github.com/Manish-Pradhan-FP/NestedScrollViewBugMAUI.

image

Manish-Pradhan-FP avatar Jan 11 '24 21:01 Manish-Pradhan-FP

Verified this on Visual Studio Enterprise 17.10.0 Preview 1(8.0.6). Repro on Windows 11, Android 14.0-API34, iOS 17.2 and MacCatalyst with below Project: NestedScrollView.zip

XamlTest avatar Feb 19 '24 08:02 XamlTest