fix: tools not working when no selection is present
This commit is contained in:
parent
1b379d80cc
commit
02b46ac1e7
1 changed files with 1 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ function Canvas() {
|
||||||
if (selectionCoords.length !== 0) {
|
if (selectionCoords.length !== 0) {
|
||||||
return selectionCoords.some(([x2, y2]) => x2 === x && y2 === y);
|
return selectionCoords.some(([x2, y2]) => x2 === x && y2 === y);
|
||||||
}
|
}
|
||||||
return false;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
const eraseTool = () => {
|
const eraseTool = () => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue