diff --git a/src/components/atoms/canvas.tsx b/src/components/atoms/canvas.tsx index 4e9afaa3..8e07ad21 100644 --- a/src/components/atoms/canvas.tsx +++ b/src/components/atoms/canvas.tsx @@ -47,11 +47,8 @@ const Canvas = ({ width, height, onCreateRef }: CanvasProps) => { switch (event.type) { case 'mousedown': const clickCoordinates = getMappedCoordinates(event, canvasRef.current, width, height); - if (getText === true) { - console.log('get text') - } else { socket.emit('input:mousedown', clickCoordinates); - } + notifyLastAction('click'); break; case 'mousemove': const coordinates = getMappedCoordinates(event, canvasRef.current, width, height);