mirror of
https://github.com/google/blockly.git
synced 2026-01-25 17:50:10 +01:00
Set main workspace when scrollbar clicked. Issue #704
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user