CommunityToolkit / CommunityToolkit/Maui

[BUG] [iOS] [TouchBehavior] Parent gets touch event when child is tapped

Open
#1,831 8 comments 3 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

Parent also gets a touch event when nested element is tappeda tapped

### Expected Behavior

parent shouldn't get touch event

### Steps To Reproduce

1. Touch nested element (red square)

### Link to public reproduction project repository

https://github.com/MichaelFrenkel/TouchBehavior-repro

### Environment

```markdown
- .NET MAUI CommunityToolkit: 8.0.1
- OS: iOS
- .NET MAUI: 8
```

### Anything else?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.