CommunityToolkit / CommunityToolkit/Maui
[BUG] `TapGestureRecognizer` not triggered when in combination with `TouchBehavior` and `Border.Shadow`
- 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?

Contributor 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