xamarin/Xamarin.Forms
Scrollview: Scrollability of nested scrollviews broken if gesture recognizer added
Open
#6,513 opened on Jun 13, 2019
3.5.0a/gestures 🖖e/5 :clock5:help wantedi/regressionp/Androidt/bug :bug:up-for-grabs
Repository metrics
- Stars
- (5,644 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
Description
Nested Scrollvies + GestureRecognizer: ScrollView dont scroll anymore:
<ScrollView
HorizontalOptions="FillAndExpand"
VerticalOptions="FillAndExpand"
Orientation="Vertical">
<StackLayout
HorizontalOptions="FillAndExpand"
VerticalOptions="FillAndExpand">
<ScrollView
Orientation="Horizontal"
HorizontalOptions="FillAndExpand"
VerticalOptions="Start">
<StackLayout
WidthRequest="3000"
HeightRequest="200"
BackgroundColor="Aqua"/>
</ScrollView>
<StackLayout
HorizontalOptions="FillAndExpand"
HeightRequest="800"
BackgroundColor="Fuchsia">
<StackLayout.GestureRecognizers>
<TapGestureRecognizer />
</StackLayout.GestureRecognizers>
</StackLayout>
</StackLayout>
</ScrollView>
Steps to Reproduce
- open app
- scroll the fuchsia scrollview (vertical) up & down -> works
- scroll the upper (horizontal) scrollview left & right -> works
- after that, scroll the fuchsia scrollview (vertical) again -> doesn't work
Expected Behavior
Vertical scrollview should scroll
Actual Behavior
Vertical scrollview doesn't scroll
Basic Information
- Version with issue: >= 3.5
- Last known good version: 3.4
- IDE: Visual Studio 2019
- Platform Target Frameworks: Android
- Android: 9.0
- Android Support Library Version: v28.0.0.1
- Nuget Packages: standard
- Affected Devices: all
Seems that the update of Xamarin.Forms.Core.IScrollViewController.cs and Xamarin.Forms.Core.ScrollView.cs (LayoutAreaOverride) causes the issues.