diff --git a/src/components/atoms/canvas.tsx b/src/components/atoms/canvas.tsx index 33f45698..6a2f9dea 100644 --- a/src/components/atoms/canvas.tsx +++ b/src/components/atoms/canvas.tsx @@ -50,11 +50,8 @@ const Canvas = ({ width, height, onCreateRef }: CanvasProps) => { } switch (event.type) { case 'mousedown': - // const clickCoordinates = getMappedCoordinates(event, canvasRef.current, width, height); - socket.emit('input:mousedown', { - x: event.clientX, - y: event.clientY, - }); + const clickCoordinates = getMappedCoordinates(event, canvasRef.current, width, height); + socket.emit('input:mousedown', clickCoordinates); notifyLastAction('click'); break; case 'mousemove':