maui icon indicating copy to clipboard operation
maui copied to clipboard

macOS map clicked event fires when tap on pin

Open paulgee31 opened this issue 1 year ago • 3 comments

Description

Same behaviour as detailed in #11532 but on macOS instead

Expected result: Pin control expands on click/tap + map MapClicked event does NOT fire MacOS Actual result: Pin control expands on click/tap + map MapClicked event FIRES

MacOS Screen shots Screenshot 2023-02-28 at 15 16 40 Screenshot 2023-02-28 at 15 16 07

Steps to Reproduce

Same steps as detailed in #11532

Link to public reproduction project repository

https://github.com/bivant/MAUI_MapTest/tree/mapPinClickedFallthrough

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

macOS

Affected platform versions

macOS Monterey 12.6.3

Did you find any workaround?

No

Relevant log output

No response

paulgee31 avatar Feb 28 '23 15:02 paulgee31

Hi, @paulgee31 - thanks for submitting this issue. We believe it should be fixed already, but could you let us know what version of Visual Studio you're on so that we can investigate further?

rachelkang avatar Feb 28 '23 19:02 rachelkang

Hi @paulgee31. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

ghost avatar Feb 28 '23 19:02 ghost

Visual Studio for Mac 17.6 Preview Build 402 Microsoft.Maui.Controls.Maps 7.0.59 Microsoft.Maui.Maps 7.0.59

paulgee31 avatar Feb 28 '23 20:02 paulgee31

Hi @paulgee31. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

ghost avatar Mar 02 '23 08:03 ghost

スクリーンショット 2023-03-02 17 56 30

Your sample doesn't include a maccatalyst project, and I'm unsure if you made any changes that could cause this issue to be reproduced. Could you fix your repro to include it?

drasticactions avatar Mar 02 '23 08:03 drasticactions

I've updated the repo here https://github.com/paulgee31/MapTest.git

paulgee31 avatar Mar 02 '23 09:03 paulgee31

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

ghost avatar Mar 02 '23 19:03 ghost

@paulgee31 I wonder if this is a MAUI bug or a Catalyst bug.

https://user-images.githubusercontent.com/898335/222683519-d1aa915a-175b-4ebc-87eb-5e8617e7367e.mov

It looks like you're tapping on the pin, but you're not. You're tapping the map below it to the underlying Catalyst control, even though to you or I, we're tapping the pin. You can verify this by attaching to the underlying Catalyst pin control and handling its tap state. If you position your cursor toward the pin's true center, the pin handles the tap and doesn't travel down the stack.

To me, the MAUI Code is correct, and the Catalyst behavior is incorrect. If the underlying control is at fault, that's from Apple, and they would need to address it. We could potentially work around it but that would be fragile and I wouldn't recommend it unless there were no other options.

drasticactions avatar Mar 03 '23 09:03 drasticactions

Thanks for looking into it and I can repeat the behaviour mentioned above.

I can work round it for the time being but ultimately I would be looking for consistent behaviour across all platforms.

I appreciate that the underlying issue is likely with the macOS platform BUT the main reason to use Maui is its "one ring to rule them all" USP, if as I'm finding more and functionality isn't completely supported on certain platforms, it will be hard sell to management for project use.

paulgee31 avatar Mar 13 '23 14:03 paulgee31

Verified this issue with Visual Studio for mac 17.6 Preview (17.6.0.1539). Can repro on maccatalyst platform with sample project. https://github.com/paulgee31/MapTest.git image

jinxinjuan avatar Jun 13 '23 07:06 jinxinjuan