1
0
Эх сурвалжийг харах

refac: gesture sensitivity

Timothy J. Baek 1 жил өмнө
parent
commit
180fd44a4d

+ 1 - 1
src/lib/components/layout/Sidebar.svelte

@@ -54,7 +54,7 @@
 		function checkDirection() {
 		function checkDirection() {
 			const screenWidth = window.innerWidth;
 			const screenWidth = window.innerWidth;
 			const swipeDistance = Math.abs(touchend.screenX - touchstart.screenX);
 			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) {
 				if (touchend.screenX < touchstart.screenX) {
 					showSidebar.set(false);
 					showSidebar.set(false);
 				}
 				}