-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Event on TapGestureRecognizer not called anymore since MAUI 9.0.110 (if there is an Android.Views.View.Touch event with e.Handled = false) #32226
Copy link
Copy link
Open
Labels
area-gesturesGesture typesGesture typesi/regressionThis issue described a confirmed regression on a currently supported versionThis issue described a confirmed regression on a currently supported versionp/0Current heighest priority issues that we are targeting for a release.Current heighest priority issues that we are targeting for a release.platform/androidregressed-in-9.0.110s/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Milestone
Description
Description
Since migration from Xamarin to MAUI, we've always used a workaround #23901 (comment) which contains e.Handled = false; on a Touch event (where e is Android.Views.View.TouchEventArgs).
However, since MAUI 9.0.110, the TapGestureRecognizer does not work anymore (Tapped event is not called).
Without it or using e.Handled = true; it still works.
But from my understanding, creating a new Touch event with only e.Handled = false; should never have any effect to any other events.
Steps to Reproduce
- Clone repo from below (it's a new MAUI project + markusksofa/TapGestureRecognizerTouchBug@50dfc6f)
- Click on the label "Click me (Label TapGestureRecognizer)"
- Nothing happens
Link to public reproduction project repository
https://github.com/markusksofa/TapGestureRecognizerTouchBug.git
Version with bug
9.0.110 SR11
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
9.0.100 SR10
Affected platforms
Android
Affected platform versions
Android 11 and 16, probably all versions
Did you find any workaround?
Do not use e.Handled = false; when TapGestureRecognizer exists on view
Relevant log output
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-gesturesGesture typesGesture typesi/regressionThis issue described a confirmed regression on a currently supported versionThis issue described a confirmed regression on a currently supported versionp/0Current heighest priority issues that we are targeting for a release.Current heighest priority issues that we are targeting for a release.platform/androidregressed-in-9.0.110s/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Type
Projects
Status
Todo