diff --git a/frontend/src/features/canvas/components/IAICanvas.tsx b/frontend/src/features/canvas/components/IAICanvas.tsx index b5fb93d0e5..cf8dd6e0ff 100644 --- a/frontend/src/features/canvas/components/IAICanvas.tsx +++ b/frontend/src/features/canvas/components/IAICanvas.tsx @@ -149,6 +149,9 @@ const IAICanvas = () => { width={stageDimensions.width} height={stageDimensions.height} scale={{ x: stageScale, y: stageScale }} + onTouchStart={handleMouseDown} + onTouchMove={handleMouseMove} + onTouchEnd={handleMouseUp} onMouseDown={handleMouseDown} onMouseEnter={handleMouseEnter} onMouseLeave={handleMouseOut} diff --git a/frontend/src/features/canvas/hooks/useCanvasMouseDown.ts b/frontend/src/features/canvas/hooks/useCanvasMouseDown.ts index 1af0401779..feae250918 100644 --- a/frontend/src/features/canvas/hooks/useCanvasMouseDown.ts +++ b/frontend/src/features/canvas/hooks/useCanvasMouseDown.ts @@ -31,7 +31,7 @@ const useCanvasMouseDown = (stageRef: MutableRefObject) => { const { tool, isStaging } = useAppSelector(selector); return useCallback( - (e: KonvaEventObject) => { + (e: KonvaEventObject) => { if (!stageRef.current) return; stageRef.current.container().focus();