From eb7b15d78b8040188c896fcf2f28d1fe35f61331 Mon Sep 17 00:00:00 2001 From: u8array Date: Tue, 5 May 2026 16:23:59 +0200 Subject: [PATCH] fix: prevent stroke from scaling during shape resize --- src/components/Canvas/KonvaObject.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/Canvas/KonvaObject.tsx b/src/components/Canvas/KonvaObject.tsx index 60b16188..130ff87f 100644 --- a/src/components/Canvas/KonvaObject.tsx +++ b/src/components/Canvas/KonvaObject.tsx @@ -609,6 +609,7 @@ function KonvaObjectInner({ height={h} stroke={isSelected ? "#6366f1" : stroke} strokeWidth={isSelected ? Math.max(strokeWidth, 1.5) : strokeWidth} + strokeScaleEnabled={false} fill={fill} cornerRadius={cornerRadius} draggable @@ -645,6 +646,7 @@ function KonvaObjectInner({ radiusY={ry} stroke={isSelected ? "#6366f1" : stroke} strokeWidth={isSelected ? Math.max(strokeWidth, 1.5) : strokeWidth} + strokeScaleEnabled={false} fill={fill} draggable onClick={(e) =>