fix: small, fast scrolls might be detected as swipes
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user