diff --git a/blocks.js b/blocks.js index f254da9b..282ed230 100644 --- a/blocks.js +++ b/blocks.js @@ -2766,6 +2766,7 @@ CommandBlockMorph.prototype.snap = function () { this.startLayout(); if (target.loc === 'bottom') { if (target.type === 'slot') { + this.removeHighlight(); target.element.nestedBlock(this); } else { target.element.nextBlock(this); @@ -2782,6 +2783,7 @@ CommandBlockMorph.prototype.snap = function () { } } } else if (target.loc === 'top') { + target.element.removeHighlight(); offsetY = this.bottomBlock().bottom() - this.bottom(); this.setBottom(target.element.top() + this.corner - offsetY); this.setLeft(target.element.left()); diff --git a/history.txt b/history.txt index d4639aa8..4cda346b 100755 --- a/history.txt +++ b/history.txt @@ -1679,3 +1679,4 @@ ______ 130427 ------ * Blocks: paint bucket symbol +* highlight adjustments when merging scripts (#70)