dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.13k stars 1.74k forks source link

Singletap event handler triggered for double mouse click on windows #14859

Open manasvi-d opened 1 year ago

manasvi-d commented 1 year ago

Description

https://github.com/manasvi-d/MauiIssues/tree/main/ErrorDoubleClick The above project highlights the issue. On Windows, single tap event handler is triggered on a mouse double click. But on android, double tap does not invoke the single tap event handler. (in GraphicsView).

Steps to Reproduce

  1. Build this project and run on Windows
  2. Do a mouse single click anywhere on the page. A small red circle appears on that location as per the single tap event handler.
  3. Do a mouse double click anywhere on the page. A small red circle appears on that location too even though the double tap event handler has no such code.

Expected Outcome: Double tap should not draw a circle at the new location. It should stay at the previously single tapped location. Actual Outcome: Double tap also draws a circle as it triggers the event handler of single tap.

Note: This behavior doesn't occur on Android.

Link to public reproduction project repository

https://github.com/manasvi-d/MauiIssues/tree/main/ErrorDoubleClick

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows 11

Did you find any workaround?

No response

Relevant log output

No response

ghost commented 1 year ago

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

XamlTest commented 1 year ago

Verified this on Visual Studio Enterprise 17.7.0 Preview 2.0. Repro on Windows 11 and iOS 16.4, not repro on Android 13.0-API33 with below Project: ErrorDoubleClick.zip

WebGoose commented 1 year ago

Any update on this? I'm having the same issue on mobile. Single tap is firing before the double tap.