mirror of
https://github.com/excalidraw/excalidraw
synced 2025-07-25 13:58:22 +08:00
fix: do not translate bound elements twice (#9486)
This commit is contained in:
@ -215,23 +215,6 @@ export const moveElement = (
|
|||||||
updateBindings(latestChildElement, scene, {
|
updateBindings(latestChildElement, scene, {
|
||||||
simultaneouslyUpdated: originalChildren,
|
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 },
|
|
||||||
);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user