make the gesture less sensitive

master
Aevann 2024-01-15 08:17:56 +02:00
parent 49a5bb2380
commit 8c5eafccb7
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ if (current_index > -1) {
let dy = unify(e).clientY - y0
let fy = +(dy/y).toFixed(2);
if (!getSelection().toString() && (f > 0.04 || f < -0.04) && (fy < 0.04 && fy > -0.04)) {
if (!getSelection().toString() && (f > 0.04 || f < -0.04) && (fy < 0.03 && fy > -0.03)) {
if (id_before && f > 0.2) {
location.href = id_before.slice(1, -1)
}