The long press is triggered by multiple short taps
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
- Open and run the repro project
- Tap multiple times on the dotnet bot image
Link to public reproduction project repository
https://github.com/jfversluis/MauiLongPressSample/tree/main/MauiLongPressSample
Environment
- .NET MAUI CommunityToolkit: 8.0.1
- OS: Android, iOS
- .NET MAUI: 8.0.20
Anything else?
No response
### Tasks
Hi, i can also confirm the error.
Me too, in my case the error occurs when switching DataTemplate values, there's a repro here. Basically you just run it and click on the first name in the list and see something like: https://github.com/CommunityToolkit/Maui/assets/12423046/154f0bf1-0d84-463e-afd6-68e9bd8f5ea9