forked from MarseyWorld/MarseyWorld
make the gesture less sensitive
parent
49a5bb2380
commit
8c5eafccb7
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue