Commit a0c9590e authored by Beka Westberg's avatar Beka Westberg Committed by Evan W. Patton

Fix new blocks getting added to backpack on click

parent 0f25b23a
......@@ -148,6 +148,7 @@ Blockly.BlockSvg.prototype.onMouseUp_ = (function(func) {
if (Blockly.getMainWorkspace().hasBackpack() &&
Blockly.getMainWorkspace().getBackpack().isOpen) {
var backpack = Blockly.getMainWorkspace().getBackpack();
goog.Timer.callOnce(backpack.close, 100, backpack);
backpack.addToBackpack(Blockly.selected, true);
backpack.onMouseUp(e, Blockly.selected.dragStartXY_);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment