google / blockly-devtools

Tools for Blockly app developers to help build custom blocks.
http://developer.google.com/blockly
Apache License 2.0
60 stars 31 forks source link

Error when selecting block in Workspace Factory #314

Open kyleplo opened 3 years ago

kyleplo commented 3 years ago

Whenever a block is selected in Workspace Factory, there is an error in the console:

Screen Shot 2021-01-18 at 16 53 51

This seems to affect the ability to create shadow blocks. I think this could be fixed by changing lines 348 and 349 of wfactory_init.js from this:

    if (e.type == Blockly.Events.BLOCK_MOVE ||
        e.type == Blockly.Event.SELECTED) {

To this:

    if (e.type == Blockly.Events.BLOCK_MOVE ||
        e.type == Blockly.Events.SELECTED) {