mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
fix: Fix inconsistency in resizing while maintaining aspect ratio (#9116)
This commit is contained in:
parent
c8f4a4cb41
commit
c329470b73
1 changed files with 2 additions and 2 deletions
|
@ -771,8 +771,8 @@ const getResizedOrigin = (
|
|||
x: x + ((prevWidth - newWidth) / 2) * (Math.cos(angle) + 1),
|
||||
y:
|
||||
y +
|
||||
(newHeight - prevHeight) / 2 +
|
||||
((prevWidth - newWidth) / 2) * Math.sin(angle),
|
||||
((prevWidth - newWidth) / 2) * Math.sin(angle) +
|
||||
(prevHeight - newHeight) / 2,
|
||||
};
|
||||
case "west-side":
|
||||
return {
|
||||
|
|
Loading…
Add table
Reference in a new issue