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 = () => {
149
149
width = { stageDimensions . width }
150
150
height = { stageDimensions . height }
151
151
scale = { { x : stageScale , y : stageScale } }
152
+ onTouchStart = { handleMouseDown }
153
+ onTouchMove = { handleMouseMove }
154
+ onTouchEnd = { handleMouseUp }
152
155
onMouseDown = { handleMouseDown }
153
156
onMouseEnter = { handleMouseEnter }
154
157
onMouseLeave = { handleMouseOut }
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ const useCanvasMouseDown = (stageRef: MutableRefObject<Konva.Stage | null>) => {
31
31
const { tool, isStaging } = useAppSelector ( selector ) ;
32
32
33
33
return useCallback (
34
- ( e : KonvaEventObject < MouseEvent > ) => {
34
+ ( e : KonvaEventObject < MouseEvent | TouchEvent > ) => {
35
35
if ( ! stageRef . current ) return ;
36
36
37
37
stageRef . current . container ( ) . focus ( ) ;
You can’t perform that action at this time.
0 commit comments