Fixed #264 - Carousel - Button inside carousel-item is not clickable in mobile phones
parent
2aa2f1fd26
commit
56fae39ec6
|
@ -106,7 +106,8 @@ export default {
|
||||||
d_page: this.page,
|
d_page: this.page,
|
||||||
totalShiftedItems: this.page * this.numScroll * -1,
|
totalShiftedItems: this.page * this.numScroll * -1,
|
||||||
allowAutoplay : !!this.autoplayInterval,
|
allowAutoplay : !!this.autoplayInterval,
|
||||||
d_circular : this.circular || this.allowAutoplay
|
d_circular : this.circular || this.allowAutoplay,
|
||||||
|
swipeThreshold: 20
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
isRemainingItemsAdded: false,
|
isRemainingItemsAdded: false,
|
||||||
|
@ -281,11 +282,13 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
changePageOnTouch(e, diff) {
|
changePageOnTouch(e, diff) {
|
||||||
if (diff < 0) { // left
|
if (Math.abs(diff) > this.swipeThreshold) {
|
||||||
this.navForward(e);
|
if (diff < 0) { // left
|
||||||
}
|
this.navForward(e);
|
||||||
else { // right
|
}
|
||||||
this.navBackward(e);
|
else { // right
|
||||||
|
this.navBackward(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
bindDocumentListeners() {
|
bindDocumentListeners() {
|
||||||
|
|
Loading…
Reference in New Issue