fix: clear touch identifier on comment text area pointerdown (#9172)

This commit is contained in:
Richard Knoll
2025-06-26 13:56:08 -07:00
committed by GitHub
parent 9cc3e11856
commit 0d6da6cfc4
2 changed files with 3 additions and 0 deletions

View File

@@ -176,6 +176,7 @@ export class TextInputBubble extends Bubble {
// Don't let the pointerdown event get to the workspace.
browserEvents.conditionalBind(textArea, 'pointerdown', this, (e: Event) => {
e.stopPropagation();
touch.clearTouchIdentifier();
});
browserEvents.conditionalBind(textArea, 'change', this, this.onTextChange);

View File

@@ -8,6 +8,7 @@ import * as browserEvents from '../browser_events.js';
import {getFocusManager} from '../focus_manager.js';
import {IFocusableNode} from '../interfaces/i_focusable_node.js';
import {IFocusableTree} from '../interfaces/i_focusable_tree.js';
import * as touch from '../touch.js';
import * as dom from '../utils/dom.js';
import {Size} from '../utils/size.js';
import {Svg} from '../utils/svg.js';
@@ -80,6 +81,7 @@ export class CommentEditor implements IFocusableNode {
// and steal focus away from the editor/comment.
e.stopPropagation();
getFocusManager().focusNode(this);
touch.clearTouchIdentifier();
},
);