mirror of
https://gitlab.com/walljm/dynamicbible.git
synced 2025-07-23 07:19:50 -04:00
remove bad threshold
(cherry picked from commit 501c9c0e995732b487bba9ae34e74eb7221a1c2d)
This commit is contained in:
parent
743dbd4199
commit
7723b0632e
@ -53,6 +53,7 @@ export class Swipe {
|
||||
|
||||
private bodyTouchStart(event: TouchEvent) {
|
||||
const t = event.touches[0];
|
||||
console.log(this.swipeInfo);
|
||||
this.swipeInfo.x1 = t.pageX;
|
||||
this.swipeInfo.y1 = t.pageY;
|
||||
this.swipeInfo.x2 = 0;
|
||||
@ -277,7 +278,6 @@ export class Swipe {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (Math.abs(this.swipeInfo.x2 - this.swipeInfo.x1) > 10) {
|
||||
// if the user has moved more than 5 pixels x then they're swiping
|
||||
this.swipeInfo.scrolling = false;
|
||||
// disable scrolling
|
||||
@ -288,7 +288,6 @@ export class Swipe {
|
||||
event.preventDefault();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user