Skip to content

Commit

Permalink
refac: gesture sensitivity
Browse files Browse the repository at this point in the history
  • Loading branch information
tjbck committed May 2, 2024
1 parent a2edd2d commit 180fd44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/components/layout/Sidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 180fd44

Please sign in to comment.