Added a grid snapping sensitivity accessibility option

This commit is contained in:
Mitchell McCaffrey
2021-02-07 16:42:29 +11:00
parent 905b43a64b
commit 76533852cd
5 changed files with 32 additions and 10 deletions

View File

@@ -18,8 +18,6 @@ import TokenLabel from "../token/TokenLabel";
import { tokenSources, unknownSource } from "../../tokens";
const snappingThreshold = 1 / 7;
function MapToken({
token,
tokenState,
@@ -51,7 +49,7 @@ function MapToken({
}
}, [tokenSourceImage]);
const snapNodeToGrid = useGridSnapping(snappingThreshold);
const snapNodeToGrid = useGridSnapping();
function handleDragStart(event) {
const tokenGroup = event.target;