-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
area-gesturesGesture typesGesture typesplatform/windowss/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Milestone
Description
Description
If a Label control specifies two TapGestureRecognizer items, on for a single tap, one for a double tap the behavior in Windows and Android differs. If you double tap on the Label in Android it fires the double tap event, but in Windows it fires the tap event twice and then the double tap event.
Steps to Reproduce
- Load the git repository and open up the project
- Build and run on Android
- Double Tap/Click on the "Tap Me" Text
- In the output window you should see "[0:] >>> OnDoubleTap Called"
- Build and run on Windows
- Double Tap/Click on the "Tap Me" Text
- In the output window you should see
>>> OnTap Called
>>> OnTap Called
>>> OnDoubleTap Called
Link to public reproduction project repository
https://github.com/david-maw/Bug-MAUI-Taps.git
Version with bug
Unknown/Other
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
Windows 10
Did you find any workaround?
Using Buttons=Secondary instead of NumberOfTapsRequired=2 on Windows worked in my case. It changed the UI slightly but did the job. So you end up with attributes like this:
NumberOfTapsRequired="{OnPlatform Default=2, WinUI=1}" Buttons="Secondary"
Which creates a 'double tap' event that works (if slightly differently) on both Windows and Android
Relevant log output
No response
Metadata
Metadata
Assignees
Labels
area-gesturesGesture typesGesture typesplatform/windowss/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working