Skip to content

Commit eb7b15d

Browse files
committed
fix: prevent stroke from scaling during shape resize
1 parent 61749e3 commit eb7b15d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/components/Canvas/KonvaObject.tsx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,7 @@ function KonvaObjectInner({
609609
height={h}
610610
stroke={isSelected ? "#6366f1" : stroke}
611611
strokeWidth={isSelected ? Math.max(strokeWidth, 1.5) : strokeWidth}
612+
strokeScaleEnabled={false}
612613
fill={fill}
613614
cornerRadius={cornerRadius}
614615
draggable
@@ -645,6 +646,7 @@ function KonvaObjectInner({
645646
radiusY={ry}
646647
stroke={isSelected ? "#6366f1" : stroke}
647648
strokeWidth={isSelected ? Math.max(strokeWidth, 1.5) : strokeWidth}
649+
strokeScaleEnabled={false}
648650
fill={fill}
649651
draggable
650652
onClick={(e) =>

0 commit comments

Comments
 (0)