From 98f0d04329881b11fd147594d4a040bc1de7f5a7 Mon Sep 17 00:00:00 2001 From: frederik Date: Sun, 3 Nov 2024 10:37:02 +0100 Subject: [PATCH] fix: small, fast scrolls might be detected as swipes --- homepage/views.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homepage/views.php b/homepage/views.php index c1d9211..a3414be 100644 --- a/homepage/views.php +++ b/homepage/views.php @@ -434,7 +434,7 @@ function installKeyAndSwipeEventHandler() { let diffTime = 0; function checkDirection() { - if (Math.abs(diffX) > Math.abs(diffY) && diffTime < 500) { + if (Math.abs(diffX) > Math.abs(diffY) && diffTime < 350) { if (diffX > 20) getTheDate(+1); if (diffX < -20) getTheDate(-1); }