Code Format
parent
864f66a6a7
commit
9ae9dd82b4
|
@ -410,9 +410,7 @@ export default {
|
|||
},
|
||||
onTouchMove(e) {
|
||||
const touchobj = e.changedTouches[0];
|
||||
const diff = this.isVertical()
|
||||
? touchobj.pageY - this.startPos.y
|
||||
: touchobj.pageX - this.startPos.x;
|
||||
const diff = this.isVertical() ? touchobj.pageY - this.startPos.y : touchobj.pageX - this.startPos.x;
|
||||
|
||||
if (Math.abs(diff) > this.swipeThreshold && e.cancelable) {
|
||||
e.preventDefault();
|
||||
|
|
Loading…
Reference in New Issue