xamarin/Xamarin.Forms

[UWP] TapGestureRecognizer No Longer Blocks List View Item Tapped Event

Aperta

#1406 aperta il 14 dic 2017

 (14 commenti) (2 reazioni) (0 assegnatari)C# (1926 fork)batch import
a/gestures 🖖a/listviewe/6 :clock6:help wantedp/UWPt/bug :bug:up-for-grabs

Metriche repository

Star
 (5644 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Description

TapGestureRecognizers inside the view cell of a list view no longer block the item tapped/item selected event of a list view.

Steps to Reproduce

  1. Create a list view with item tapped and or item selected events.
  2. Have a control with a tap gesture recognizer inside the view cell.
  3. Tap gesture recognizer doesn't block item tapped / item selected events.

Expected Behavior

The TapGestureRecognizer should block the item tapped / item selected event from firing. This use to be the behavior.

Actual Behavior

Both the TapGestureRecognizer and the item tapped / item selected events fire.

Basic Information

  • Version with issue: 2.5.0.121934
  • Last known good version: 2.3.4.270
  • IDE: VS 2017 15.5.1
  • Platform Target Frameworks:
    • UWP: 15063
  • Nuget Packages: Xamarin Forms
  • Affected Devices: UWP

Reproduction Link

Here is a reproduction solution https://drive.google.com/file/d/1iud-OgALmeTw1Jf1q6xKMGG00v2xsNhF/view?usp=sharing

https://bugzilla.xamarin.com/show_bug.cgi?id=32842

Guida contributor