소스 검색

refac: gesture sensitivity

Timothy J. Baek 1 년 전
부모
커밋
180fd44a4d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/lib/components/layout/Sidebar.svelte

+ 1 - 1
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);
 				}