forked from marva/sumorobot-web
		
	fix control_if mutator closing on touch screen
This commit is contained in:
		@@ -280,8 +280,14 @@ window.onload = function() {
 | 
				
			|||||||
    /* resume the blocks */
 | 
					    /* resume the blocks */
 | 
				
			||||||
    Blockly.Xml.domToWorkspace(xml, workspace);
 | 
					    Blockly.Xml.domToWorkspace(xml, workspace);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /* disable right click on Blockly workspace */
 | 
					    /* when mouse click occures on Blockly workspace */
 | 
				
			||||||
    Blockly.utils.isRightButton = function(e) {
 | 
					    Blockly.utils.isRightButton = function(e) {
 | 
				
			||||||
 | 
					        /* if control_if block is used */
 | 
				
			||||||
 | 
					        if (controlBlockId != "") {
 | 
				
			||||||
 | 
					            /* close the control_if block mutator */
 | 
				
			||||||
 | 
					            workspace.getBlockById(controlBlockId).mutator.setVisible(false);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        /* disable right click on Blockly workspace */
 | 
				
			||||||
        return false;
 | 
					        return false;
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user