Fix UI issue with pressing space with move tool selected
This commit is contained in:
@@ -135,6 +135,9 @@ function MapInteraction({
|
||||
previousSelectedToolRef.current = selectedToolId;
|
||||
onSelectedToolChange("move");
|
||||
}
|
||||
if (!event.repeat && shortcuts.move(event) && selectedToolId === "move") {
|
||||
previousSelectedToolRef.current = "move";
|
||||
}
|
||||
}
|
||||
|
||||
function handleKeyUp(event: KeyboardEvent) {
|
||||
|
||||
Reference in New Issue
Block a user