Don't select blocks if readOnly is changed.

This commit is contained in:
Neil Fraser
2016-03-16 19:10:36 -07:00
parent 3bf04aedc6
commit 2b96d7a756

View File

@@ -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;