Skip to content

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

@markusksofa

Description

@markusksofa

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

  1. Clone repo from below (it's a new MAUI project + markusksofa/TapGestureRecognizerTouchBug@50dfc6f)
  2. Click on the label "Click me (Label TapGestureRecognizer)"
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-gesturesGesture typesi/regressionThis issue described a confirmed regression on a currently supported versionp/0Current heighest priority issues that we are targeting for a release.platform/androidregressed-in-9.0.110s/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions