🔀 Merge pull request #226 from ajnart/ajnart/issue214

🐛Tiles could be moved accidentally on mobiles
This commit is contained in:
Thomas Camlong
2022-06-15 06:51:18 +02:00
committed by GitHub

View File

@@ -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,
},
})