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