From 6811010caff9d1b03a0d18dc682f19c8790ef204 Mon Sep 17 00:00:00 2001 From: alschmiedt Date: Thu, 11 Jun 2020 11:30:54 -0700 Subject: [PATCH] Fix emitting workspace event (#3959) --- core/gesture.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/gesture.js b/core/gesture.js index e4aea332c..cba4fef03 100644 --- a/core/gesture.js +++ b/core/gesture.js @@ -665,7 +665,7 @@ Blockly.Gesture.prototype.handleWsStart = function(e, ws) { * @private */ Blockly.Gesture.prototype.fireWorkspaceClick_ = function(ws) { - var clickEvent = new Blockly.Events.Ui(null, "workspaceClick", null, null); + var clickEvent = new Blockly.Events.Ui(null, 'workspaceClick', null, null); clickEvent.workspaceId = ws.id; Blockly.Events.fire(clickEvent); }; @@ -777,6 +777,7 @@ Blockly.Gesture.prototype.doWorkspaceClick_ = function(e) { } else if (Blockly.selected) { Blockly.selected.unselect(); } + this.fireWorkspaceClick_(ws); }; /* End functions defining what actions to take to execute clicks on each type