@dolphinweex/weex-vue-render 0.2.61 → 0.2.63

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.
@@ -6097,6 +6097,7 @@ var scrollable$1 = {
6097
6097
  var i = (void 0);
6098
6098
  if ((i = parent.$options) && (i = i._scopeId)) {
6099
6099
  scopeIds.push(i);
6100
+ break; // scopeIds有内容就终止while循环 否则会一直添加父级作用域导致同类名污染
6100
6101
  }
6101
6102
  parent = parent.$parent;
6102
6103
  }
@@ -8962,7 +8963,15 @@ var slideMixin = {
8962
8963
 
8963
8964
  // 触发滚动事件
8964
8965
  this._emitScrollEvent('scrollstart');
8965
-
8966
+ // 添加持续的滚动事件触发
8967
+ var step = this._step = this.frameCount <= 1 ? 0 : this._preIndex - newIndex;
8968
+
8969
+ var dist = currentOffset - this.innerOffset + step;
8970
+ setTimeout(() => {
8971
+ this$1._throttleEmitScroll(dist, () => {
8972
+ this$1._emitScrollEvent('scrollend');
8973
+ });
8974
+ }, THROTTLE_SCROLL_TIME);
8966
8975
  // 动画完成后的处理
8967
8976
  setTimeout(() => {
8968
8977
  inner.style.transition = 'none';
@@ -9005,7 +9014,7 @@ var slideMixin = {
9005
9014
  this$1.currentIndex = newIndex;
9006
9015
  this$1._preIndex = newIndex;
9007
9016
  this$1._emitScrollEvent('scrollend');
9008
- }, duration * 1000);
9017
+ }, duration * 800);
9009
9018
  },
9010
9019
 
9011
9020
  _handleTouchCancel: function _handleTouchCancel (event) {
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.61"
52
+ "version": "0.2.63"
53
53
  }