Skip to content
Snippets Groups Projects
Commit 571eaa05 authored by Tim Mickel's avatar Tim Mickel Committed by GitHub
Browse files

Merge pull request #4 from tmickel/feature/attach-flyout-listeners

Attach flyout listeners to GUI workspace
parents 2677e221 28e90eb9
No related branches found
No related tags found
No related merge requests found
......@@ -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));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment