Hi Xamarin
//Here is pseudocode below
var parent = new AbsoluteLayout(); // Has got PAN gesture
var child = new AbsoluteLayout(); // Has got TAP gesture OR ScrollView/ListView
parent.Children.Add(child);
So, in those cases we lose ability to handle PanGesture, because Scroller/TapGesture prevent pan touches..
Please include a full reproduction.
@kingces95
here is the repository with reproduction
https://github.com/AndreiMisiukevich/PanGestureRecognizerIssueReproduction
@kingces95 sorry for disturb.
Is it, what you asked me? Is it clear?
I can provide more info, if you wish.
@AndreiMisiukevich That is what we needed. Thank you.
I am also having the same issue.
And SwipeGesture does not work with ScrollView
@ViktorBylbas Please file a separate issue for SwipeGesture.
@hartez i guess, it can be the same one
Scrollable views steal touches (have more priority)..
I just ran into this bug trying to use a SwipeGestureRecognizer on a Frame inside a ScrollView. Is there a known workaround? Considering this issue was opened a year ago I don't have much hope for a fix in the near future.
@nwilliams for my nuget package i solve it with renderer
https://github.com/AndreiMisiukevich/CardView/blob/master/PanCardView.Droid/CardsViewRenderer.cs
OnTouchEvent
OnInterceptTouchEvent
But i had to write renderer for scrollview too https://github.com/AndreiMisiukevich/CardView/blob/master/PanCardView.Droid/ParentScrollViewRenderer.cs
@AndreiMisiukevich, thank you for the fast reply. I was hoping to avoid building a custom renderer but there may not be any way around it.
Also, your CardsView package looks very well made. I'll keep it in mind for future projects. :)
Any news on this? Would be nice to have a Swipe delete feature (same thing for collectionview)
This issue doesn't seem to have had any activity in a long time. We're working on prioritizing issues and resolving them as quickly as we can. To help us get through the list, we would appreciate an update from you to let us know if this is still affecting you on the latest version of Xamarin.Forms, since it's possible that we may have resolved this as part of another related or duplicate issue. If we don't see any new activity on this issue in the next 30 days, we'll evaluate whether this issue should be closed. Thank you!
hey @samhouts
I still can replicate this issue on my sample https://github.com/AndreiMisiukevich/PanGestureRecognizerIssueReproduction
I updated to latest PRE-release version
Thank you, @AndreiMisiukevich !!!
I resolved my problem SwipeGesture does not work with ScrollView:
https://stackoverflow.com/questions/54202966/xamarin-forms-swipegesture-and-scrollview-dont-work-together-on-android/54480748#54480748
Is there any solutions for this problem?
PanGesture still does not work inside ScrollView on Android. On IOS works fine.
Is there any solutions for this problem?
PanGesture still does not work inside ScrollView on Android. On IOS works fine.
Yes, it is
Check how I handled it in my nuget https://github.com/AndreiMisiukevich/CardView/blob/master/PanCardView.Droid/CardsViewRenderer.cs (This Carousel works fine inside Scrollable views)
Thanks, but i found that setting ScrollView.InputTransparent="True" solves my problem
Thanks, but i found that setting ScrollView.InputTransparent="True" solves my problem
Doing so for me doesn't allow the scroll of the elements in the fingers are on the elements but only swipe outside the elements in the scrollview.
Most helpful comment
hey @samhouts
I still can replicate this issue on my sample https://github.com/AndreiMisiukevich/PanGestureRecognizerIssueReproduction
I updated to latest PRE-release version