Skip to content

Pan gesture update events have incorrect values on Windows #33539

@jeremy-visionaid

Description

@jeremy-visionaid

Description

When panning by dragging the mouse left to right, the values received from the PanGestureRecognizer do not increase monotonically. This causes elements to jump around the screen when being dragged.

Steps to Reproduce

  1. Clone the repro repo
  2. Run Maui.Controls.Sample
  3. Navigate to Core => Gestures => Pan Gesture Event Gallery
  4. Pan from left to right
  5. Observe that the pan locations sometimes jump backwards

Link to public reproduction project repository

https://github.com/jeremy-visionaid/maui/tree/pan-gesture-jank-repro

Version with bug

10.0.20

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

No response

Did you find any workaround?

Use WinUI 3 events directly

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-gesturesGesture typesplatform/windowss/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions