fix: do not translate bound elements twice (#9486)

This commit is contained in:
David Luzar 2025-05-06 13:09:00 +02:00 committed by GitHub
parent cec5232a7a
commit a7c61319dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -215,23 +215,6 @@ export const moveElement = (
updateBindings(latestChildElement, scene, {
simultaneouslyUpdated: originalChildren,
});
const boundTextElement = getBoundTextElement(
latestChildElement,
originalElementsMap,
);
if (boundTextElement) {
const latestBoundTextElement = elementsMap.get(boundTextElement.id);
latestBoundTextElement &&
scene.mutateElement(
latestBoundTextElement,
{
x: boundTextElement.x + changeInX,
y: boundTextElement.y + changeInY,
},
{ informMutation: shouldInformMutation, isDragging: false },
);
}
});
}
};