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.22k stars 1.75k forks source link

MAUI Pan Gesture Recognizer interruption bug #15576

Open BineeMan opened 1 year ago

BineeMan commented 1 year ago

Description

When using Pan Gesture Recognizer, after approximately 7 seconds it gets inturrepted. It just stops calling "PanUpdated" event, therefore GestureStatus.Canceled or GestureStatus.Completed cases are not executed. I've noticed that extra calculations or calling another functions inside of PanUpdate event can trigger this bug earlier, sometimes almost instantly. This bug only on Windows. On a gif below I'm demonstrating how it happens, I didn't release LMB: Desktop 2023 06 12 - 13 09 51 03 DVR (1)

Steps to Reproduce

  1. Create new Maui project
  2. Add Absolute Layout
  3. Add a Rectangle (or any other view) on this Absolute Layout
  4. Add Pan Gesture Recognizer on this Rectangle
  5. Write an event for it
  6. Drag this Rectangle for about 7 seconds

Link to public reproduction project repository

https://github.com/BineeMan/MAUI-Pan-Gesture-Recognizer-interruption-bug

Version with bug

7.0.49

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 4.0. Repro on Windows 11 and iOS 16.4 .NET 8, not repro on Android 13.0-API33 with below Project: MauiApp1.zip

iOS: Cannot be dragged. DragiOS image Windows: If the mouse beyond the red rectangle during dragging, then the gesture is interrupted. DragWindows image

Mataboge commented 1 year ago

Confirmed issue as well on Windows

M-Yankov commented 3 months ago

Can anyone give an update on that, I had similar problem when dragging an object very fast it gets released before release the mouse button. Now it seems to work even dragging the mouse outside of the application window (Desktop) the object is still dragging.