mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
fix: clear touch identifier on comment text area pointerdown (#9172)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user