feat: notify click action
This commit is contained in:
@@ -56,6 +56,7 @@ const Canvas = ({ width, height, onCreateRef }: CanvasProps) => {
|
|||||||
} else {
|
} else {
|
||||||
socket.emit('input:mousedown', clickCoordinates);
|
socket.emit('input:mousedown', clickCoordinates);
|
||||||
}
|
}
|
||||||
|
notifyLastAction('click');
|
||||||
break;
|
break;
|
||||||
case 'mousemove':
|
case 'mousemove':
|
||||||
const coordinates = getMappedCoordinates(event, canvasRef.current, width, height);
|
const coordinates = getMappedCoordinates(event, canvasRef.current, width, height);
|
||||||
|
|||||||
Reference in New Issue
Block a user