mirror of
https://github.com/google/blockly.git
synced 2026-01-11 10:57:07 +01:00
Don't select blocks if readOnly is changed.
This commit is contained in:
@@ -481,6 +481,9 @@ Blockly.BlockSvg.prototype.tab = function(start, forward) {
|
||||
* @private
|
||||
*/
|
||||
Blockly.BlockSvg.prototype.onMouseDown_ = function(e) {
|
||||
if (this.workspace.options.readOnly) {
|
||||
return;
|
||||
}
|
||||
if (this.isInFlyout) {
|
||||
e.stopPropagation();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user