From 843fbc6a75a670c18c931d500240b15eb80259eb Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Tue, 23 Jul 2024 08:38:48 +0530 Subject: [PATCH] feat: isCLickCOnfirmed prop --- src/components/atoms/canvas.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/atoms/canvas.tsx b/src/components/atoms/canvas.tsx index 9a879106..03845186 100644 --- a/src/components/atoms/canvas.tsx +++ b/src/components/atoms/canvas.tsx @@ -11,6 +11,7 @@ interface CanvasProps { width: number; height: number; onCreateRef: CreateRefCallback; + isClickConfirmed: boolean; } /** @@ -45,7 +46,8 @@ const Canvas = ({ width, height, onCreateRef }: CanvasProps) => { switch (event.type) { case 'mousedown': const clickCoordinates = getMappedCoordinates(event, canvasRef.current, width, height); - socket.emit('input:mousedown', clickCoordinates); + //socket.emit('input:mousedown', clickCoordinates); + console.log('you clicked on:', clickCoordinates); notifyLastAction('click'); break; case 'mousemove':