This repository has been archived by the owner on May 1, 2024. It is now read-only.
[Bug] ScrollView inside SwipeView #12582
Labels
a/scrollview
a/swipeview
blocker
Issue blocks next stable release. Prioritize fixing and reviewing this issue.
e/4 🕓
4
i/regression
in-progress
This issue has an associated pull request that may resolve it!
t/bug 🐛
Projects
Milestone
Description
I use swipeview for entire screen with TopItems(Swipe direction from up to down).
Inside the swipeview there is a grid layout which has 3 section, Header, Body, Footer.
The Body section is a ScrollView.
Up until the Xamarin.Forms 4.7.0.1179 version, the swipeview events are canceled when the user swipes inside the ScrollView(Body section) and whenever tries to swipe in the Header or Footer section the swipe event are works fine.
From the version Xamarin.Forms 4.7.0.1239 and beyond, that behavior is changed.
Now the swipeview consumes ScrollView's scrolling events, so the ScrollView is disabled for the direction that is configured in swipeview(from up to down).
I think that the child(ScrollView) should has more priority to consumes these events than his parent(SwipeView) ?
If for some reason that I don't know the priority should be as it is right now, please give me some instructions on how to disable parent(SwipeView) event when the user uses the child element(ScrollView). I find the IsEnabled property of SwipeView but it doesn't help me because that disables swipe events for the entire screen. All I need is the child element should have more priority for consuming common events from his parent.
Code example:
Steps to Reproduce
Expected Behavior
The scollview should consume the swipe event with direction from up to down and cancel his parent(SwipeView).
Actual Behavior
The SwipeView as a parent element consumes the swipe event and it cancels any other common event from his children.
Basic Information
The text was updated successfully, but these errors were encountered: