Fix #5320 – Carousel blocking touch scroll
parent
40c7c574ec
commit
8f6119a5d1
|
@ -409,7 +409,12 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onTouchMove(e) {
|
onTouchMove(e) {
|
||||||
if (e.cancelable) {
|
const touchobj = e.changedTouches[0];
|
||||||
|
const diff = this.isVertical()
|
||||||
|
? touchobj.pageY - this.startPos.y
|
||||||
|
: touchobj.pageX - this.startPos.x;
|
||||||
|
|
||||||
|
if (Math.abs(diff) > this.swipeThreshold && e.cancelable) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue