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.26k stars 1.76k forks source link

Pan Gesture Stops Working in .NET MAUI After Pinch Gesture #25342

Open MohammedDastagir opened 1 month ago

MohammedDastagir commented 1 month ago

Description

The Pan gesture in a .NET MAUI app stops working after performing a pinch gesture. The Pan gesture event is no longer invoked when trying to pan after pinching.

Steps to Reproduce

Steps to Reproduce:

1) Create a .NET MAUI sample app. 2) Add a Pan container to an image as described in the official Microsoft Pan gesture documentation. 3) Pan the image for some time. 4) Attempt to pinch the image (neither pan nor pinch work as expected). 5) Try to pan the image again after pinching. The Pan gesture event will no longer be invoked.

Expected Behavior: The Pan gesture should continue functioning properly after the pinch gesture.

Actual Behavior: The Pan gesture event stops getting invoked after a pinch gesture.

Link to public reproduction project repository

https://github.com/MohammedDastagir/Maui.PanProject

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows 11 Tab Surface Pro

Did you find any workaround?

No response

Relevant log output

No response

similar-issues-ai[bot] commented 1 month ago

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by šŸ‘ or šŸ‘Ž this comment.