mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
fix: incorrect placement of bound lines on flip
This commit is contained in:
parent
fd0baecb48
commit
7b7c60d164
2 changed files with 4 additions and 3 deletions
|
@ -95,7 +95,5 @@ const flipElements = (
|
||||||
flipDirection === "horizontal" ? minY : maxY,
|
flipDirection === "horizontal" ? minY : maxY,
|
||||||
);
|
);
|
||||||
|
|
||||||
elements.forEach((element) => updateBoundElements(element));
|
|
||||||
|
|
||||||
return elements;
|
return elements;
|
||||||
};
|
};
|
||||||
|
|
|
@ -784,8 +784,11 @@ export const resizeMultipleElements = (
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
updateBoundElements(latestElement, { newSize: { width, height } });
|
|
||||||
mutateElement(latestElement, update);
|
mutateElement(latestElement, update);
|
||||||
|
updateBoundElements(latestElement, {
|
||||||
|
simultaneouslyUpdated: targetElements.map(({ latest }) => latest),
|
||||||
|
newSize: { width, height },
|
||||||
|
});
|
||||||
|
|
||||||
const boundTextElement = getBoundTextElement(latestElement);
|
const boundTextElement = getBoundTextElement(latestElement);
|
||||||
if (boundTextElement) {
|
if (boundTextElement) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue