CommunityToolkit / CommunityToolkit/Maui

The long press is triggered by multiple short taps

Open
#1,818 6 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

The LongPressCommand of the TouchBehavior is triggered by multiple fast short taps

https://github.com/CommunityToolkit/Maui/assets/88542944/7f5fb4eb-2cd3-4f4f-9d3d-8279158cb58e

https://github.com/CommunityToolkit/Maui/assets/88542944/cc3827fc-847f-4143-a829-561eaf53889a

### Expected Behavior

The long press should be triggered only by long tap

### Steps To Reproduce

1. Open and run the repro project
2. Tap multiple times on the dotnet bot image

### Link to public reproduction project repository

https://github.com/jfversluis/MauiLongPressSample/tree/main/MauiLongPressSample

### Environment

```markdown
- .NET MAUI CommunityToolkit: 8.0.1
- OS: Android, iOS
- .NET MAUI: 8.0.20
```

### Anything else?

_No response_
```[tasklist]
### Tasks
```

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.