Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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 on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
In our app we have some Grids and StackLayouts with labels and icons that as a whole act like a button. We made this with a single TapGestureRecognizer on those Grids/StackLayouts.
The problem now is that with the latest Forms (184.108.40.206-pre2) on Android the TapGestureRecognizer is not called most of the time. About 3 out of 4 taps fail. It seems that the labels in those Grids/StackLayouts eat the tap events.
Android only. It doesn't happen on iOS.
(As a workaround I will put TapGestureRecognizers on all individual components; that seems to work)
Created attachment 21922 [details]
I created a sample project and I'm seeing the issue described. In the sample project, I have a Grid and StackLayout each with a TapGestureRecognizer added.
This appears to be a regression introduced in 2.3.5, possibly related to https://github.com/xamarin/Xamarin.Forms/pull/842
### Steps to reproduce
1. Run the attached Android project
2. Tap on the red Grid
3. Tap on the Label in the blue StackLayout
### Expected Results
The debug output will indicate the TapGesture was activated.
#### Actual Results
The TapGesture is activated. In the red Grid, the Label is swallowing the tap regardless of where on the Grid you tap.
In the blue StackLayout, the event is not bubbled up to the StackLayout if the tap occurs on the Label. So tapping the area outside the Label will still work.
You can set the InputTransparent on the Label to 'true'.
### Regression Test
Should be fixed on 2.3.5-pre3
*** Bug 54492 has been marked as a duplicate of this bug. ***
Verified this issue on the latest xamarin forms version 220.127.116.11-pre5
Issue is fixed now.Verified on
=== Visual Studio Community 2017 for Mac (Preview) ===
Version 7.1 Preview (7.1 build 1258)
Installation UUID: 473a8fdd-3836-4e5e-a5c3-b537689e827f
Mono 18.104.22.168 (2017-04/478c04a) (64-bit)
=== Xamarin.iOS ===
Version: 10.12.0.12 (Visual Studio Community)
=== Xamarin.Android ===
Version: 22.214.171.124 (Visual Studio Community)
=== Xamarin.Mac ===
Version: 126.96.36.199 (Visual Studio Community)
Xamarin forms version 188.8.131.52-pre5