Skip to content

Commit 0d6da6c

Browse files
authored
fix: clear touch identifier on comment text area pointerdown (#9172)
1 parent 9cc3e11 commit 0d6da6c

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

core/bubbles/textinput_bubble.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ export class TextInputBubble extends Bubble {
176176
// Don't let the pointerdown event get to the workspace.
177177
browserEvents.conditionalBind(textArea, 'pointerdown', this, (e: Event) => {
178178
e.stopPropagation();
179+
touch.clearTouchIdentifier();
179180
});
180181

181182
browserEvents.conditionalBind(textArea, 'change', this, this.onTextChange);

core/comments/comment_editor.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import * as browserEvents from '../browser_events.js';
88
import {getFocusManager} from '../focus_manager.js';
99
import {IFocusableNode} from '../interfaces/i_focusable_node.js';
1010
import {IFocusableTree} from '../interfaces/i_focusable_tree.js';
11+
import * as touch from '../touch.js';
1112
import * as dom from '../utils/dom.js';
1213
import {Size} from '../utils/size.js';
1314
import {Svg} from '../utils/svg.js';
@@ -80,6 +81,7 @@ export class CommentEditor implements IFocusableNode {
8081
// and steal focus away from the editor/comment.
8182
e.stopPropagation();
8283
getFocusManager().focusNode(this);
84+
touch.clearTouchIdentifier();
8385
},
8486
);
8587

0 commit comments

Comments
 (0)