Skip to content

Commit eeb75dd

Browse files
committed
Rotation #5
1 parent 438f7e7 commit eeb75dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/box_transform/lib/src/resizers/freeform_resizing.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ final class FreeformResizer extends Resizer {
155155
required Box initialRect,
156156
required double rotation,
157157
}) {
158-
if (rotation == 0) return initialRect;
158+
if (rotation == 0) return newRect;
159159

160160
final Vector2 positionDelta = newRect.topLeft - initialRect.topLeft;
161161
final Vector2 newPos = BoxTransformer.calculateUnrotatedPos(

0 commit comments

Comments
 (0)