diff --git a/src/components/atoms/canvas.tsx b/src/components/atoms/canvas.tsx index e3b83f54..7351621e 100644 --- a/src/components/atoms/canvas.tsx +++ b/src/components/atoms/canvas.tsx @@ -62,7 +62,7 @@ const Canvas = ({ width, height, onCreateRef, highlighterData }: CanvasProps) => const onMouseEvent = useCallback((event: MouseEvent) => { if (socket && canvasRef.current) { const coordinates = getMappedCoordinates(event, canvasRef.current, width, height); - + switch (event.type) { case 'mousemove': if (lastMousePosition.current.x !== coordinates.x ||