mirror of
https://github.com/google/blockly.git
synced 2026-06-17 08:35:12 +02:00
fix: Don't select shadow blocks on click (#9538)
* fix: Don't select shadow blocks on click * test: Verify that clicked shadow blocks do not become selected * chore: Run formatter
This commit is contained in:
+1
-3
@@ -773,13 +773,11 @@ export class Gesture {
|
||||
this.setStartWorkspace(ws);
|
||||
this.mostRecentEvent = e;
|
||||
|
||||
if (!this.startBlock && !this.startBubble && !this.startComment) {
|
||||
if (!this.targetBlock && !this.startBubble && !this.startComment) {
|
||||
// Ensure the workspace is selected if nothing else should be. Note that
|
||||
// this is focusNode() instead of focusTree() because if any active node
|
||||
// is focused in the workspace it should be defocused.
|
||||
getFocusManager().focusNode(ws);
|
||||
} else if (this.startBlock) {
|
||||
getFocusManager().focusNode(this.startBlock);
|
||||
}
|
||||
|
||||
this.doStart(e);
|
||||
|
||||
Reference in New Issue
Block a user