diff --git a/src/lib/vm-manager.js b/src/lib/vm-manager.js index e3991a5aac1..3ed01018d8e 100644 --- a/src/lib/vm-manager.js +++ b/src/lib/vm-manager.js @@ -3,6 +3,8 @@ const ScratchBlocks = require('scratch-blocks'); module.exports = { attachWorkspace: function (vm, workspace) { workspace.addChangeListener(vm.blockListener); + var flyoutWorkspace = workspace.getFlyout().getWorkspace(); + flyoutWorkspace.addChangeListener(vm.flyoutBlockListener); vm.on('STACK_GLOW_ON', data => workspace.glowStack(data.id, true)); vm.on('STACK_GLOW_OFF', data => workspace.glowStack(data.id, false)); vm.on('BLOCK_GLOW_ON', data => workspace.glowBlock(data.id, true));