dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.28k stars 1.76k forks source link

Tap gesture on Content is blocking the pinch gesture on ContentView #14154

Open NavaneethS opened 1 year ago

NavaneethS commented 1 year ago

Description

If we added a PinchGestureRecognizer to a ContentView and add a TapGestureRecognizer to the Content of the ContentView and tried to pinch, then the pinch is not recognized. But if we remove the TapGestureRecognizer and pinch, then the pinch is recognized. Because of this, I am never able to detect the pinch on the ContentView

Steps to Reproduce

  1. Run the replication sample
  2. Pinch on the screen, the PinchUpdated event of the pinch gesture is not fired.
  3. Now remove the TapGestureRecognizer from childView and pinch. Now you can see the PinchUpdated event is fired.

Link to public reproduction project repository

https://github.com/NavaneethS/GestureIssue.git

Version with bug

6.0.312

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 13.0

Did you find any workaround?

No

Relevant log output

NA
Zhanglirong-Winnie commented 1 year ago

Visual Studio Enterprise 17.8.0 Preview 2.0. Can repro on android platform with sample project. GestureIssue-main.zip