fix: Fix inconsistency in resizing while maintaining aspect ratio (#9116)

This commit is contained in:
Kyosuke Fujimoto 2025-02-10 23:24:08 +09:00 committed by GitHub
parent c8f4a4cb41
commit c329470b73
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {