|
@@ -97,8 +97,13 @@ Component({
|
|
|
const diff = current - _last
|
|
|
this._swipering = false
|
|
|
|
|
|
- this.data._last = current
|
|
|
+
|
|
|
this.playCurrent(current)
|
|
|
+ const change = current !== this.data._last
|
|
|
+
|
|
|
+ if (diff === 0 || !change) {
|
|
|
+ return
|
|
|
+ }
|
|
|
|
|
|
const direction = (diff === 1 || diff === -2) ? 'up' : 'down'
|
|
|
|
|
@@ -132,7 +137,7 @@ Component({
|
|
|
})
|
|
|
|
|
|
let circular = true
|
|
|
-
|
|
|
+ this.data._last = current
|
|
|
// if (_dataIdx === 0) {
|
|
|
// circular = false
|
|
|
// }
|