Commit 180fd44a authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

refac: gesture sensitivity

parent a2edd2d9
...@@ -54,7 +54,7 @@ ...@@ -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);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment