Open mfe- opened 2 years ago
Did you try it on Windows? Does it only not work on Android or also not on other platforms?
Hi @mfe-. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.
@jfversluis The TapGestureRecognizer
sample works on windows. The event TapGestureRecognizer_Tapped
will be hit if you touch the provided area:
I noticed that I forgot to remove some StaticResource
s. I removed them from the sample, and updated the example.
In addition I added for android an screenshot. Hope it helps
For the android platform you would need to comment in: control = ((content as ContentView).Children[0] as Grid).Children[0] as View; //Frame
Edit: As I dont own an Iphone I don't know the status of the issue on ios
verified repro on android, event TapGestureRecognizer_Tapped
will be hit on windows and IOS.
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.
Bug: Putting Frame inside ListView's ItemTemplate blocks tap action to trigger on a ListView item.
Verified this on Visual Studio Enterprise 17.6.0 Preview 7.0. Repro on Android 13.0 with below Project: 8121.zip
Event TapGestureRecognizer_Tapped
will be hit on Windows, but not on Android.
Any updates on this. Its been sitting in backlog for over a year now. Thats crazy for such high usage usecase.
Wow, this bug has been sitting here for more than 1.5 years and is still not addressed? Sure, this is not a major, crashing bug but as @Manish-Pradhan-FP said: This is far from being an uncommon use case. At least every MAUI documentation about GestureRecognizers should state: "You want to use this on Android? Our condolences."
Any update on this?
Still reproduces on 8.0.14
+1 would love this to work
Description
I added a TapGestureRecognizer to a custom
ContentView
which contains several other controls. I wondered why theTapped
event is not getting fired on Android when I tap on the ContentView. The same code is working on Windows.I figured out, that when I add the
TapGestureRecognizer
to a child control which occupies alot of sapce theTapped
event gets fired. From my observation it looks like that the Tapped Event / TapGestureRecognizer will not be forwarded to its child controls.This bug may be related to #6644 , #7466, #8004
Steps to Reproduce
In the attached project TapGestureRecognizer_doesnt_fire_Tapped_event_on_child_controls.zip the ContentView contains the following control hierarchy:
Adding the
tapGestureRecognizer
directly to thecontent
(which is of type ContentView) will not fire theTapped
event. If you comment linecontrol = ((content as ContentView).Children[0] as Grid).Children[0] as View
in the tapGestureRecognizer gets added directly on the Frame. Tapping now on the ContentView will fire theTapped
event.Version with bug
6.0.312
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
android
Did you find any workaround?
Register the TapGestureRecognizer on all sub controls of the ContentView.
Relevant log output
No response