mirror of
https://github.com/youzan/vant.git
synced 2026-03-03 03:00:27 +08:00
[bug fix] Tabs: fix tab content not trigger click event (#749)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user