Fix drawings being erased when drawing tool not selected
This commit is contained in:
parent
f24156c44c
commit
ae98b54c7b
@ -34,7 +34,7 @@ function MapDrawing({
|
||||
const [isBrushDown, setIsBrushDown] = useState(false);
|
||||
const [erasingShapes, setErasingShapes] = useState([]);
|
||||
|
||||
const shouldHover = toolSettings.type === "erase";
|
||||
const shouldHover = toolSettings.type === "erase" && active;
|
||||
const isBrush =
|
||||
toolSettings.type === "brush" || toolSettings.type === "paint";
|
||||
const isShape =
|
||||
|
Loading…
Reference in New Issue
Block a user