Skip to content

Commit ddb01a5

Browse files
committed
fix(DirectionIcon): simplify implementation * 2
1 parent ae142b8 commit ddb01a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/icons/DirectionIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export const DirectionIcon = memo(function DirectionIcon(
6161
// Wrap around: use the shorter path
6262
shortestDiff = diffRotate > 0 ? diffRotate - 360 : diffRotate + 360;
6363
}
64-
// When flipped, rotation direction is inverted (scaleY flips the coordinate system)
64+
// Apply the shortest rotation path
6565
setRotate((prev) => prev - shortestDiff);
6666
}
6767

0 commit comments

Comments
 (0)