fix: emit proper co-ordinates on mouse move

This commit is contained in:
karishmas6
2024-07-23 10:21:42 +05:30
parent 065fa69d72
commit c080c881b9

View File

@@ -62,7 +62,10 @@ const Canvas = ({ width, height, onCreateRef, highlighterData }: CanvasProps) =>
x: coordinates.x,
y: coordinates.y,
};
socket.emit('input:mousemove', coordinates);
socket.emit('input:mousemove', {
x: coordinates.x,
y: coordinates.y,
});
setLastAction('move');
}
break;