Maui icon indicating copy to clipboard operation
Maui copied to clipboard

The long press is triggered by multiple short taps

Open MarkiianKhylynskyi opened this issue 1 year ago • 5 comments

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

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

Anything else?

No response

### Tasks

MarkiianKhylynskyi avatar Apr 16 '24 07:04 MarkiianKhylynskyi

Hi, i can also confirm the error.

hwsmo avatar Apr 19 '24 05:04 hwsmo

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

david-maw avatar May 02 '24 03:05 david-maw