fix: emit proper co-ordinates on mouse move
This commit is contained in:
@@ -62,7 +62,10 @@ const Canvas = ({ width, height, onCreateRef, highlighterData }: CanvasProps) =>
|
|||||||
x: coordinates.x,
|
x: coordinates.x,
|
||||||
y: coordinates.y,
|
y: coordinates.y,
|
||||||
};
|
};
|
||||||
socket.emit('input:mousemove', coordinates);
|
socket.emit('input:mousemove', {
|
||||||
|
x: coordinates.x,
|
||||||
|
y: coordinates.y,
|
||||||
|
});
|
||||||
setLastAction('move');
|
setLastAction('move');
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user