Merge pull request #5513 from lukereative/fix-5320
Fix #5320 – Carousel blocking touch scrollpull/5523/head
commit
864f66a6a7
|
@ -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