Fix clicking buttons (#1458)

This commit is contained in:
Nathan Bierema 2023-08-18 22:34:49 -04:00 committed by GitHub
parent 71b77b9d4d
commit 156454d6f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,7 +107,11 @@ export default function ActionList<A extends Action<unknown>>({
}, []);
const sensors = useSensors(
useSensor(PointerSensor),
useSensor(PointerSensor, {
activationConstraint: {
distance: 8,
},
}),
useSensor(KeyboardSensor, {
coordinateGetter: sortableKeyboardCoordinates,
}),