From 58345600b022b84f07f0314f9f872440989dbea5 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Fri, 26 Jul 2024 03:43:26 +0530 Subject: [PATCH] fix: -rm getText logic from mousedown --- src/components/atoms/canvas.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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);