From fb7dedbc0f127b58a8ea0ead99f069d965471f2f Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Wed, 24 Jul 2024 08:33:09 +0530 Subject: [PATCH] chore: navigation reminder??? --- src/components/atoms/canvas.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/atoms/canvas.tsx b/src/components/atoms/canvas.tsx index 9a879106..139abc7e 100644 --- a/src/components/atoms/canvas.tsx +++ b/src/components/atoms/canvas.tsx @@ -45,6 +45,7 @@ const Canvas = ({ width, height, onCreateRef }: CanvasProps) => { switch (event.type) { case 'mousedown': const clickCoordinates = getMappedCoordinates(event, canvasRef.current, width, height); + // needed for navigation socket.emit('input:mousedown', clickCoordinates); notifyLastAction('click'); break;