refac: gesture sensitivity

This commit is contained in:
Timothy J. Baek committed 2024-05-02 03:02:15 -07:00
1 parent a2edd2d911
commit 180fd44a4d
1 file changed
+1 -1
+1 -1
View File
@@ -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);
}