@dolphinweex/weex-vue-render 0.2.112 → 0.2.113

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8912,6 +8912,9 @@ var slideMixin = {
8912
8912
  return
8913
8913
  }
8914
8914
  }
8915
+ if (weex.sliderChange) {
8916
+ return
8917
+ }
8915
8918
  if (!this.scrollable || this.frameCount<=1) {
8916
8919
  __renderLog('[weex-slider] _handleTouchStart return: not scrollable', {
8917
8920
  scrollable: this.scrollable,
@@ -8978,6 +8981,13 @@ var slideMixin = {
8978
8981
  }
8979
8982
  },
8980
8983
  _handleTouchMove: function _handleTouchMove (event) {
8984
+ if (weex.sliderChange) {
8985
+ // 手势中途被打断时清掉起点,避免 flag 恢复后按旧 startX 改 left
8986
+ if (this._touchParams) {
8987
+ delete this._touchParams
8988
+ }
8989
+ return
8990
+ }
8981
8991
  var tp = this._touchParams;
8982
8992
  if (!tp || !this.scrollable || this.frameCount<=1 || this._sliding) {
8983
8993
  if (this._sliding) {
package/package.json CHANGED
@@ -49,5 +49,5 @@
49
49
  "type": "git",
50
50
  "url": "git+ssh://git@github.com/weexteam/weex-vue-render.git"
51
51
  },
52
- "version": "0.2.112"
52
+ "version": "0.2.113"
53
53
  }