forked from marva/sumorobot-web
fix dragging/creating blocks
This commit is contained in:
parent
d57afa65d5
commit
c8c40b8e6f
@ -265,6 +265,8 @@ window.onload = function() {
|
|||||||
|
|
||||||
/* on blockly code change */
|
/* on blockly code change */
|
||||||
function onCodeChanged(event) {
|
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 */
|
/* generate code from the used blocks */
|
||||||
var code = Blockly.Sumorobot.workspaceToCode(workspace);
|
var code = Blockly.Sumorobot.workspaceToCode(workspace);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user