Bug 60852 - [Android] Viewcells with contextactions and tapgesturerecognisers will trigger long tap just by tapping or scrolling
Summary: [Android] Viewcells with contextactions and tapgesturerecognisers will trigge...
Status: NEEDINFO
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.5.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-11-24 14:05 UTC by Björn Bentmar
Modified: 2017-11-28 09:23 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: Yes
Last known good build: 2.4.0.91020


Attachments
repro (1.58 MB, application/x-zip-compressed)
2017-11-27 12:29 UTC, Björn Bentmar
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 60852 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEEDINFO

Description Björn Bentmar 2017-11-24 14:05:53 UTC
<ListView x:Name="list" HasUnevenRows="True" >
                    <ListView.ItemTemplate>
                        <DataTemplate>
                            <ViewCell>
                                <ViewCell.ContextActions>
                                    <MenuItem></MenuItem>
                                </ViewCell.ContextActions>
                                <StackLayout>
                                    <Image   WidthRequest="35" Source="icon" >
                                        <Image.GestureRecognizers>
                                            <TapGestureRecognizer   />
                                        </Image.GestureRecognizers>
                                    </Image>

                                    <StackLayout Grid.Column="0" Margin="5,5,0,5"  Spacing="0" >
                                        <Label Text="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"  HorizontalTextAlignment="Center"  FontSize="Small" FontAttributes="Bold"  />
                                        <Label Text="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"  HorizontalTextAlignment="Center" FontSize="Small" FontAttributes="Bold"  />
                                    </StackLayout>
                                    
                                    <Label Text="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"  HorizontalTextAlignment="Center" LineBreakMode="NoWrap" FontSize="Small" FontAttributes="Bold"  />
                                </StackLayout>
                                
                            </ViewCell>
                        </DataTemplate>
                    </ListView.ItemTemplate>
                </ListView>

When combining tapgesturerecogz and contextaction long tap will trigger on android, it happens only by tapping and sometimes just by scrolling.
Comment 1 Björn Bentmar 2017-11-24 15:15:35 UTC
When looking deeper this bug showed up in 2.5.0.19271-pre2
Comment 2 Björn Bentmar 2017-11-27 12:29:00 UTC
Created attachment 25835 [details]
repro

repro project
Comment 3 David Ortinau [MSFT] 2017-11-27 15:08:38 UTC
Bjorn, 

This isn't happening for me on a Pixel running 8.0.0. Can you be more specific about device, OS version, and steps to reproduce?
Comment 4 Björn Bentmar 2017-11-27 16:41:38 UTC
Steps to reproduce:
tap a cell or scroll i little.

I tested on device running marshmallow and emulator running nougat. have not tested oreo
Comment 5 Matthias 2017-11-28 09:23:02 UTC
Duplicate of 60850