From 53922dcd67d4e821ab784f7dbf98ea22a8d3a60b Mon Sep 17 00:00:00 2001 From: Dylan Llewellyn <46717769+herefishyfish@users.noreply.github.com> Date: Wed, 27 Aug 2025 14:29:48 +0800 Subject: [PATCH] fix(canvas): filter out touch events by identifier --- packages/canvas/Canvas/common.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/canvas/Canvas/common.ts b/packages/canvas/Canvas/common.ts index 7483d195..89d26f6e 100644 --- a/packages/canvas/Canvas/common.ts +++ b/packages/canvas/Canvas/common.ts @@ -695,7 +695,7 @@ export abstract class CanvasBase extends View implements ICanvasBase { } if (hasTouchCallbacks && !preventDefault) { - const touches = TouchList.fromList(this._touches); + const touches = TouchList.fromList(this._touches.filter((t) => t.identifier !== ptrId)); const changedTouches = TouchList.fromList([ new Touch({