From 6300faf85ed3bc8f574f9d3a9e9c516a92d9ad21 Mon Sep 17 00:00:00 2001 From: Neil Fraser Date: Sun, 23 Oct 2016 20:31:59 -0700 Subject: [PATCH] Set main workspace when scrollbar clicked. Issue #704 --- core/scrollbar.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/scrollbar.js b/core/scrollbar.js index c30f45cd0..e379dca4b 100644 --- a/core/scrollbar.js +++ b/core/scrollbar.js @@ -599,6 +599,7 @@ Blockly.Scrollbar.prototype.setVisible = function(visible) { * @private */ Blockly.Scrollbar.prototype.onMouseDownBar_ = function(e) { + this.workspace_.markFocused(); Blockly.Touch.clearTouchIdentifier(); // This is really a click. this.cleanUp_(); if (Blockly.isRightButton(e)) { @@ -638,6 +639,7 @@ Blockly.Scrollbar.prototype.onMouseDownBar_ = function(e) { * @private */ Blockly.Scrollbar.prototype.onMouseDownHandle_ = function(e) { + this.workspace_.markFocused(); this.cleanUp_(); if (Blockly.isRightButton(e)) { // Right-click.