From 64dfb17fa15cc0e68f3bb14a14df0937bd6191b2 Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Mon, 14 Jun 2021 12:20:06 +1000 Subject: [PATCH] Move mouse tile drag to a distance constraint --- src/contexts/TileDragContext.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/contexts/TileDragContext.js b/src/contexts/TileDragContext.js index 6f6644e..a146846 100644 --- a/src/contexts/TileDragContext.js +++ b/src/contexts/TileDragContext.js @@ -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 },