Skip to content

Commit 39f39fb

Browse files
authored
Merge pull request #6 from u8array/fix/stroke-scale-during-resize
fix: prevent stroke from scaling during shape resize
2 parents d10eb30 + eb7b15d commit 39f39fb

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)