fix: incorrect placement of bound lines on flip

This commit is contained in:
Alex Kim 2023-05-19 21:30:32 +05:00
parent fd0baecb48
commit 7b7c60d164
No known key found for this signature in database
GPG key ID: CEE74CFA44D238D7
2 changed files with 4 additions and 3 deletions

View file

@ -95,7 +95,5 @@ const flipElements = (
flipDirection === "horizontal" ? minY : maxY,
);
elements.forEach((element) => updateBoundElements(element));
return elements;
};

View file

@ -784,8 +784,11 @@ export const resizeMultipleElements = (
}
}
updateBoundElements(latestElement, { newSize: { width, height } });
mutateElement(latestElement, update);
updateBoundElements(latestElement, {
simultaneouslyUpdated: targetElements.map(({ latest }) => latest),
newSize: { width, height },
});
const boundTextElement = getBoundTextElement(latestElement);
if (boundTextElement) {