Skip to content

Fix not handled pointercancel event #9249

@nianxy

Description

@nianxy

Check for duplicates

  • I have searched for similar issues before opening a new one.

Description

When I use the multi-touch gesture on a mobile device, there may be a 'pointercancel' event fired under some situations. In this situation, the Gesture instance is not disposed because the code is waiting for the 'pointerup' event, and the following events are all affected by the Gesture.

We can make the 'pointerup' event listener to also listen to the 'pointercancel' event, and I will try to commit a PR to fix this problem.

Reproduction steps

  1. Try to use two fingers to pinch the workspace and hold the fingers on the screen
  2. Try to fire a 'pointercancel' event, for example, move the two fingers very close
  3. Release the fingers, and try to move the workspace by a finger, you can find that the moving action is abnormal

Stack trace

None

Screenshots

VID_20250723_113041.mp4

Browsers

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue: bugDescribes why the code or behaviour is wrong

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions