[ios] listview cell with image and tapgesturerecognizer erroneously call itemselected instead of recognizer
#5 196 ouverte le 11 févr. 2019
Métriques du dépôt
- Stars
- (5 644 étoiles)
- Métriques de merge PR
- (Aucune PR mergée en 30 j)
Description
Description
this code
<Image Source="feedicon.png" Grid.Column="1" Grid.Row="0" Grid.RowSpan="4" HorizontalOptions="End" VerticalOptions="Center" HeightRequest="40" Aspect="AspectFill" BackgroundColor="Green"> <Image.GestureRecognizers> <TapGestureRecognizer Tapped="btCell_Clicked" NumberOfTapsRequired="1" /> </Image.GestureRecognizers> </Image>
works nice in android version. if i tap image, btCell_Clicked method executes, outside image - itemselected code.
but on IOS, more often called itemselected, and sometimes, rarely -btCellClicked. i tried to enlarge the image to height 100, put a frame on it . nothing helps
Steps to Reproduce
Expected Behavior
if user taps image - gesture recognizer handles the event, if user taps outside image - listview handles the event
Actual Behavior
Basic Information
visual studio 15.9.5 xamarin.forms 3.5.0.129452 ios min OS version 9, on device 11.2.1 ipad mggx2ru/a