Skip to content

Commit

Permalink
fix: blocks dragged from RTL flyout being incorrectly positioned
Browse files Browse the repository at this point in the history
  • Loading branch information
BeksOmega committed Sep 27, 2021
1 parent 3f063f0 commit ba5766c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/flyout_base.js
Original file line number Diff line number Diff line change
Expand Up @@ -1117,7 +1117,7 @@ Flyout.prototype.positionNewBlock_ = function(oldBlock, block) {
// The position of the old block in main workspace coordinates.
finalOffset.scale(1 / targetWorkspace.scale);

block.moveBy(finalOffset.x, finalOffset.y);
block.moveTo(new Coordinate(finalOffset.x, finalOffset.y));
};

/**
Expand Down

0 comments on commit ba5766c

Please sign in to comment.