Adhere to map grid snapping settings for select tool

This commit is contained in:
Mitchell McCaffrey
2021-08-05 14:47:00 +10:00
parent 17defb0aec
commit 9e2d09cafd
3 changed files with 17 additions and 6 deletions
+3 -2
View File
@@ -81,7 +81,7 @@ function useMapSelection(
onSelectionItemsRemove(tokenStateIds, noteIds);
}
const selectionTool = (
const selectionTool = map ? (
<SelectTool
active={active}
toolSettings={settings}
@@ -93,8 +93,9 @@ function useMapSelection(
onSelectionDragEnd={handleSelectionDragEnd}
disabledTokens={disabledTokens}
disabledNotes={disabledNotes}
map={map}
/>
);
) : null;
const selectionMenu = (
<SelectionMenu