diff --git a/src/components/DesignCanvas.tsx b/src/components/DesignCanvas.tsx index a29e7e8..42a4b5b 100644 --- a/src/components/DesignCanvas.tsx +++ b/src/components/DesignCanvas.tsx @@ -325,7 +325,7 @@ function PrintSurface({ {elements.map((el) => el.type === 'text' ? ( el.curvedPath ? ( - // Curved text - simple TextPath without Group wrapper + // Curved text - TextPath with dragging support { @@ -336,9 +336,17 @@ function PrintSurface({ fontFamily={el.fontFamily} fontSize={el.fontSize} fill={el.fill} + offset={{ x: -el.x, y: -el.y }} + x={el.x} + y={el.y} + draggable listening={true} onClick={() => setSelectedId(el.id)} onTap={() => setSelectedId(el.id)} + onDragEnd={(e) => { + const node = e.target as any; + updateElement(el.id, { x: node.x(), y: node.y() }); + }} /> ) : ( // Regular straight text