Skip to content

Commit 139fa2b

Browse files
authored
fix: handle pointercancel only for drags (#9373)
1 parent 7274f4b commit 139fa2b

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

core/gesture.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,15 @@ export class Gesture {
467467
/* opt_noCaptureIdentifier */ true,
468468
),
469469
);
470+
this.boundEvents.push(
471+
browserEvents.conditionalBind(
472+
document,
473+
'pointercancel',
474+
null,
475+
this.handleUp.bind(this),
476+
/* opt_noCaptureIdentifier */ true,
477+
),
478+
);
470479

471480
e.preventDefault();
472481
e.stopPropagation();

core/touch.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ export const TOUCH_MAP: {[key: string]: string[]} = {
4646
'mouseup': ['pointerup', 'pointercancel'],
4747
'touchend': ['pointerup'],
4848
'touchcancel': ['pointercancel'],
49-
'pointerup': ['pointerup', 'pointercancel'],
5049
};
5150

5251
/** PID of queued long-press task. */

0 commit comments

Comments
 (0)