From 180fd44a4daa1447334048574afffbfa26884e33 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Thu, 2 May 2024 03:02:15 -0700 Subject: [PATCH] refac: gesture sensitivity --- src/lib/components/layout/Sidebar.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/layout/Sidebar.svelte b/src/lib/components/layout/Sidebar.svelte index 34b3eb10..8af0401c 100644 --- a/src/lib/components/layout/Sidebar.svelte +++ b/src/lib/components/layout/Sidebar.svelte @@ -54,7 +54,7 @@ function checkDirection() { const screenWidth = window.innerWidth; const swipeDistance = Math.abs(touchend.screenX - touchstart.screenX); - if (touchstart.clientX < 40 && swipeDistance >= screenWidth / 4) { + if (touchstart.clientX < 40 && swipeDistance >= screenWidth / 8) { if (touchend.screenX < touchstart.screenX) { showSidebar.set(false); }