fix: -rm getText logic from mousedown

This commit is contained in:
karishmas6
2024-07-26 03:43:26 +05:30
parent d788b09428
commit 58345600b0

View File

@@ -47,11 +47,8 @@ const Canvas = ({ width, height, onCreateRef }: CanvasProps) => {
switch (event.type) {
case 'mousedown':
const clickCoordinates = getMappedCoordinates(event, canvasRef.current, width, height);
if (getText === true) {
console.log('get text')
} else {
socket.emit('input:mousedown', clickCoordinates);
}
notifyLastAction('click');
break;
case 'mousemove':
const coordinates = getMappedCoordinates(event, canvasRef.current, width, height);