From 5133286e04f24ffdf137496b53cf79f5bab65f7e Mon Sep 17 00:00:00 2001 From: ajnart Date: Tue, 14 Jun 2022 22:45:31 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9BTiles=20could=20be=20moved=20accide?= =?UTF-8?q?ntally=20on=20mobiles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #214 --- src/components/AppShelf/AppShelf.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/AppShelf/AppShelf.tsx b/src/components/AppShelf/AppShelf.tsx index 97b028997..b32454c47 100644 --- a/src/components/AppShelf/AppShelf.tsx +++ b/src/components/AppShelf/AppShelf.tsx @@ -44,11 +44,16 @@ const AppShelf = (props: any) => { const { colorScheme } = useMantineColorScheme(); const sensors = useSensors( - useSensor(TouchSensor, {}), + useSensor(TouchSensor, { + activationConstraint: { + delay: 500, + tolerance: 5, + }, + }), useSensor(MouseSensor, { // Require the mouse to move by 10 pixels before activating activationConstraint: { - delay: 250, + delay: 500, tolerance: 5, }, })