From d3576cbb2ce8549ae54728e7bad220216a82f375 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Thu, 25 Jul 2024 22:44:50 +0530 Subject: [PATCH] chore: -rm unwanted code --- src/components/atoms/canvas.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/atoms/canvas.tsx b/src/components/atoms/canvas.tsx index bfd801f6..f1a3e4fc 100644 --- a/src/components/atoms/canvas.tsx +++ b/src/components/atoms/canvas.tsx @@ -36,7 +36,8 @@ const Canvas = ({ width, height, onCreateRef }: CanvasProps) => { }; const lastMousePosition = useRef({ x: 0, y: 0 }); - //const lastWheelPosition = useRef({ deltaX: 0, deltaY: 0 }); + + const onMouseEvent = useCallback((event: MouseEvent) => { if (socket) {