mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-28 22:10:31 -04:00
Set main workspace when scrollbar clicked. Issue #704
This commit is contained in:
parent
12e6a7a535
commit
6300faf85e
1 changed files with 2 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue