refac: gesture sensitivity

This commit is contained in:
Timothy J. Baek 2024-05-02 03:02:15 -07:00
parent a2edd2d911
commit 180fd44a4d

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