feat: check getListRef.current for mousedown
This commit is contained in:
@@ -53,8 +53,8 @@ const Canvas = ({ width, height, onCreateRef }: CanvasProps) => {
|
|||||||
switch (event.type) {
|
switch (event.type) {
|
||||||
case 'mousedown':
|
case 'mousedown':
|
||||||
const clickCoordinates = getMappedCoordinates(event, canvasRef.current, width, height);
|
const clickCoordinates = getMappedCoordinates(event, canvasRef.current, width, height);
|
||||||
if (getTextRef.current === true) {
|
if (getTextRef.current === true || getListRef.current === true) {
|
||||||
console.log('get text')
|
console.log('get text or get list is true');
|
||||||
} else {
|
} else {
|
||||||
socket.emit('input:mousedown', clickCoordinates);
|
socket.emit('input:mousedown', clickCoordinates);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user