Skip to content

Commit

Permalink
fixed a sticky-comments deletion issue
Browse files Browse the repository at this point in the history
this might take care of #2568
  • Loading branch information
jmoenig committed Apr 29, 2020
1 parent e6a4343 commit e74c95a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -4368,11 +4368,12 @@ BlockMorph.prototype.situation = function () {
// BlockMorph sticky comments

BlockMorph.prototype.prepareToBeGrabbed = function (hand) {
var wrld = hand ? hand.world : this.world();
this.allInputs().forEach(input =>
delete input.bindingID
);
this.allComments().forEach(comment =>
comment.startFollowing(this, hand.world)
comment.startFollowing(this, wrld)
);
};

Expand Down Expand Up @@ -4816,7 +4817,6 @@ CommandBlockMorph.prototype.snap = function (hand) {
CommandBlockMorph.prototype.prepareToBeGrabbed = function (handMorph) {
var oldPos = this.position();

nop(handMorph);
if (this.parent instanceof RingReporterSlotMorph) {
this.parent.revertToDefaultInput(this);
this.setPosition(oldPos);
Expand Down

0 comments on commit e74c95a

Please sign in to comment.