fix: tools not working when no selection is present

This commit is contained in:
trafficlunar 2025-01-19 21:24:37 +00:00
parent 1b379d80cc
commit 02b46ac1e7

View file

@ -105,7 +105,7 @@ function Canvas() {
if (selectionCoords.length !== 0) {
return selectionCoords.some(([x2, y2]) => x2 === x && y2 === y);
}
return false;
return true;
};
const eraseTool = () => {