Commit 312d0f2c authored by hbcui1984's avatar hbcui1984

调整图片轮播swipe滑动的敏感度

parent bd7348c0
......@@ -869,7 +869,7 @@ var mui = (function(document, undefined) {
index: 5,
handle: handle,
options: {
flickMaxTime: 300,
flickMaxTime: 200,
flickMinDistince: 10
}
});
......@@ -3322,7 +3322,7 @@ var mui = (function(document, undefined) {
return;
}
if (e.type === 'flick') {
if (detail.swipe) { //slider不用flick,太容易触发,校验是否是swipe
if (detail.touchTime < 200) { //flick,太容易触发,额外校验一下touchtime
this.x = -(this.slideNumber + (direction === 'left' ? 1 : -1)) * this.wrapperWidth;
}
this.resetPosition(this.options.bounceTime);
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment