mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Fix simultaneous update issue with arrows
This commit is contained in:
parent
272b418445
commit
868517ab75
1 changed files with 58 additions and 54 deletions
|
@ -178,8 +178,11 @@ export const moveElement = (
|
|||
}
|
||||
|
||||
if (isFrameLikeElement(originalElement)) {
|
||||
getFrameChildren(originalElementsMap, originalElement.id).forEach(
|
||||
(child) => {
|
||||
const originalChildren = getFrameChildren(
|
||||
originalElementsMap,
|
||||
originalElement.id,
|
||||
);
|
||||
originalChildren.forEach((child) => {
|
||||
const latestChildElement = elementsMap.get(child.id);
|
||||
|
||||
if (!latestChildElement) {
|
||||
|
@ -213,7 +216,9 @@ export const moveElement = (
|
|||
},
|
||||
{ informMutation: shouldInformMutation, isDragging: false },
|
||||
);
|
||||
updateBindings(latestChildElement, scene);
|
||||
updateBindings(latestChildElement, scene, {
|
||||
simultaneouslyUpdated: originalChildren,
|
||||
});
|
||||
|
||||
const boundTextElement = getBoundTextElement(
|
||||
latestChildElement,
|
||||
|
@ -231,8 +236,7 @@ export const moveElement = (
|
|||
{ informMutation: shouldInformMutation, isDragging: false },
|
||||
);
|
||||
}
|
||||
},
|
||||
);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue