feat: notify click action

This commit is contained in:
karishmas6
2024-07-26 04:26:07 +05:30
parent cdf6ce42e5
commit 3d6fac9ea7

View File

@@ -56,6 +56,7 @@ const Canvas = ({ width, height, onCreateRef }: CanvasProps) => {
} else {
socket.emit('input:mousedown', clickCoordinates);
}
notifyLastAction('click');
break;
case 'mousemove':
const coordinates = getMappedCoordinates(event, canvasRef.current, width, height);