Skip to content

Commit d11ad26

Browse files
committed
Fix undo/redo object movement bug
1 parent ec74a53 commit d11ad26

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

‎Libraries/pure-data‎

‎Source/Object.cpp‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,13 +1058,10 @@ void Object::mouseDrag(MouseEvent const& e)
10581058
}
10591059
}
10601060

1061-
// FIXME: stop the mousedrag event from blocking the objects from redrawing, we shouldn't need to do this? JUCE bug?
10621061
if (ds.componentBeingDragged) {
10631062
for (auto* object : selection) {
10641063
object->isObjectMouseActive = true;
1065-
auto const newPosition = object->originalBounds.getPosition() + dragDistance;
1066-
1067-
object->setTopLeftPosition(newPosition);
1064+
object->setTopLeftPosition(object->originalBounds.getPosition() + dragDistance);
10681065
}
10691066

10701067
if (cnv->viewport) {

0 commit comments

Comments
 (0)