File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
frontend/src/features/canvas Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -149,6 +149,9 @@ const IAICanvas = () => {
149149 width = { stageDimensions . width }
150150 height = { stageDimensions . height }
151151 scale = { { x : stageScale , y : stageScale } }
152+ onTouchStart = { handleMouseDown }
153+ onTouchMove = { handleMouseMove }
154+ onTouchEnd = { handleMouseUp }
152155 onMouseDown = { handleMouseDown }
153156 onMouseEnter = { handleMouseEnter }
154157 onMouseLeave = { handleMouseOut }
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ const useCanvasMouseDown = (stageRef: MutableRefObject<Konva.Stage | null>) => {
3131 const { tool, isStaging } = useAppSelector ( selector ) ;
3232
3333 return useCallback (
34- ( e : KonvaEventObject < MouseEvent > ) => {
34+ ( e : KonvaEventObject < MouseEvent | TouchEvent > ) => {
3535 if ( ! stageRef . current ) return ;
3636
3737 stageRef . current . container ( ) . focus ( ) ;
You can’t perform that action at this time.
0 commit comments