Skip to content

Commit 53922dc

Browse files
committed
fix(canvas): filter out touch events by identifier
1 parent cb66829 commit 53922dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/canvas/Canvas/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ export abstract class CanvasBase extends View implements ICanvasBase {
695695
}
696696

697697
if (hasTouchCallbacks && !preventDefault) {
698-
const touches = TouchList.fromList(this._touches);
698+
const touches = TouchList.fromList(this._touches.filter((t) => t.identifier !== ptrId));
699699

700700
const changedTouches = TouchList.fromList([
701701
new Touch({

0 commit comments

Comments
 (0)