mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-19 15:31:04 +02:00
fix: incorrect placement of bound lines on flip
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user