CommunityToolkit / CommunityToolkit/Maui

[BUG] `TapGestureRecognizer` not triggered when in combination with `TouchBehavior` and `Border.Shadow`

Open
#2,165 6 comments 0 reactions 0 assignees View on GitHub
area/behaviors bug unverified
Dominant language
C#
Stars
2.7k
Forks
500
Avg merge
2d 14h
Merged PRs (30d)
7

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Did you read the "Reporting a bug" section on Contributing file?

- [X] I have read the "Reporting a bug" section on Contributing file: https://github.com/CommunityToolkit/Maui/blob/main/CONTRIBUTING.md#reporting-a-bug

### Current Behavior

A `TapGestureRecognizer` is not triggered when used in combination with a `TouchBehavior` and inside of a `Border` with a `Shadow`.

### Expected Behavior

The `TapGestureRecognizer` is triggered

### Steps To Reproduce

1. run the app from the repo **in Android 14**
2. click on the images
3. see that there is no `Toast` when clicked on the second image

### Link to public reproduction project repository

https://github.com/FroggieFrog/BugMauiShadowTouch

### Environment

```markdown
- .NET MAUI CommunityToolkit: 9.0.3
- OS: Android 14
- .NET MAUI: 8.0.82
```

### Anything else?

![maui_bug](https://github.com/user-attachments/assets/ffa564f1-ee6d-4403-b238-bab431878e2e)

Contributor guide

Open the contributing guide

Research direction

Start with the linked public reproduction project and run it on Android 14, then compare the first and second image interactions involving TapGestureRecognizer, TouchBehavior, and Border.Shadow. The issue names no toolkit files or tests, so trace the Android touch-handling path from the reproduction. Done means the tap fires in this combination and the missing Toast behavior is covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, csharp
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.