[bug fix] Tabs: fix tab content not trigger click event (#749)

This commit is contained in:
张敏
2018-03-22 11:41:22 +08:00
committed by GitHub
parent 14d7f9dfb0
commit 4810630215

View File

@@ -162,14 +162,12 @@ export default create({
// watch swipe touch move
onTouchMove(event) {
event.preventDefault();
this.deltaX = event.touches[0].clientX - this.startX;
this.direction = this.getDirection(event.touches[0]);
},
// watch swipe touch end
onTouchEnd(event) {
event.preventDefault();
onTouchEnd() {
const { direction, deltaX, curActive } = this;
const minSwipeDistance = 50;