Move mouse tile drag to a distance constraint

This commit is contained in:
Mitchell McCaffrey 2021-06-14 12:20:06 +10:00
parent 265f04fc0a
commit 64dfb17fa1

View File

@ -61,7 +61,7 @@ export function TileDragProvider({
} = useGroup();
const mouseSensor = useSensor(MouseSensor, {
activationConstraint: { delay: 250, tolerance: 5 },
activationConstraint: { distance: 5 },
});
const touchSensor = useSensor(TouchSensor, {
activationConstraint: { delay: 250, tolerance: 5 },