mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[bug fix] Tabs: fix tab content not trigger click event (#749)
This commit is contained in:
parent
14d7f9dfb0
commit
4810630215
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user