mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-11-11 00:04:23 +01:00
fix: Fix inconsistency in resizing while maintaining aspect ratio (#9116)
This commit is contained in:
@@ -771,8 +771,8 @@ const getResizedOrigin = (
|
|||||||
x: x + ((prevWidth - newWidth) / 2) * (Math.cos(angle) + 1),
|
x: x + ((prevWidth - newWidth) / 2) * (Math.cos(angle) + 1),
|
||||||
y:
|
y:
|
||||||
y +
|
y +
|
||||||
(newHeight - prevHeight) / 2 +
|
((prevWidth - newWidth) / 2) * Math.sin(angle) +
|
||||||
((prevWidth - newWidth) / 2) * Math.sin(angle),
|
(prevHeight - newHeight) / 2,
|
||||||
};
|
};
|
||||||
case "west-side":
|
case "west-side":
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user