From 28e90eb9142c3fd380e04a52ee3b2eacbd3995c2 Mon Sep 17 00:00:00 2001 From: Tim Mickel Date: Thu, 13 Oct 2016 17:27:47 -0400 Subject: [PATCH] Attach flyout listeners to GUI workspace --- src/lib/vm-manager.js | 2 ++ 1 file changed, 2 insertions(+) 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));