forked from marva/sumorobot-web
		
	fix dragging/creating blocks
This commit is contained in:
		@@ -265,6 +265,8 @@ window.onload = function() {
 | 
			
		||||
 | 
			
		||||
    /* on blockly code change */
 | 
			
		||||
    function onCodeChanged(event) {
 | 
			
		||||
        /* only process change and move commands */
 | 
			
		||||
        if (event.type != Blockly.Events.CHANGE && event.type != Blockly.Events.MOVE) return;
 | 
			
		||||
        /* generate code from the used blocks */
 | 
			
		||||
        var code = Blockly.Sumorobot.workspaceToCode(workspace);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user