I am using a Popup with a ListView and custom ViewCell inside. This was working just fine in version 0.0.9, but since upgrading to 0.0.12 I now have to press the listview item for a few seconds and release in order for ItemSelected to fire. I used to only need to tap the list item quickly.
Again, this worked fine in 0.0.9. Not sure what changed since then. The XAML in my PCL looks like this....
<pages:PopupPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:pages="clr-namespace:Rg.Plugins.Popup.Pages;assembly=Rg.Plugins.Popup">
<ListView x:Name="ListView" ItemSelected="OnSelection" >
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<StackLayout Orientation="Horizontal" >
<Label Text = "{Binding DisplayValue}" ></Label>
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</pages:PopupPage>
@iupchris10 Hey. This error occurs only on Android or ios?
iOS - sorry I forgot to mention.
I'm also using Xamarin Forms. The XAML code I listed above is from my Portable Class Library project.
@iupchris10 Please, please, Xamarin.Forms version, Xamarin.IOS and IOS SDK
Xamarin.Forms 2.1.0.6529
Xaramin.iOS 9.4.1.25
iOS SDK 9.2
@iupchris10 Yes, I can confirm this bug. This is due to the implementation of gestures PopupPageRenderer for ios. Once corrected, I will inform you. Thank you.
@iupchris10 I fixed this bug. As soon as will Nuget version 0.0.13, upgrade to it.
Write to me after the test the. Thank you.
Just upgraded to 0.0.13 and so far everything is working. I'll keep an eye on it. Thank you so much for addressing so quickly!
Happy to help.
I believe this bug is back again in 1.0.4. Tested with Forms 2.3.4.
@Amenti Try to use 1.1.0-pre2
@rotorgames Tried it out. Sorry, it's the same behaviour.
@rotorgames Sorry to have bothered you. The problem is in fact not Rg.Plugins.Popup but the different handling of GestureRecognizers in iOS and Android. When multiple GestureRecognizers are registered iOS seems to favor the last one and Android calls them all. This led to the problem in my case.
Amenti/rotorgames - We are hitting this issue...how do we get around it? The popup is receiving the tap and not the ListView/SelectedItem.
@dfarrNTST Can you show your xaml?