@dolphinweex/weex-vue-render 0.2.61 → 0.2.62
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.
- package/dist/index.common.js +10 -2
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -8962,7 +8962,15 @@ var slideMixin = {
|
|
|
8962
8962
|
|
|
8963
8963
|
// 触发滚动事件
|
|
8964
8964
|
this._emitScrollEvent('scrollstart');
|
|
8965
|
-
|
|
8965
|
+
// 添加持续的滚动事件触发
|
|
8966
|
+
var step = this._step = this.frameCount <= 1 ? 0 : this._preIndex - newIndex;
|
|
8967
|
+
|
|
8968
|
+
var dist = currentOffset - this.innerOffset + step;
|
|
8969
|
+
setTimeout(() => {
|
|
8970
|
+
this$1._throttleEmitScroll(dist, () => {
|
|
8971
|
+
this$1._emitScrollEvent('scrollend');
|
|
8972
|
+
});
|
|
8973
|
+
}, THROTTLE_SCROLL_TIME);
|
|
8966
8974
|
// 动画完成后的处理
|
|
8967
8975
|
setTimeout(() => {
|
|
8968
8976
|
inner.style.transition = 'none';
|
|
@@ -9005,7 +9013,7 @@ var slideMixin = {
|
|
|
9005
9013
|
this$1.currentIndex = newIndex;
|
|
9006
9014
|
this$1._preIndex = newIndex;
|
|
9007
9015
|
this$1._emitScrollEvent('scrollend');
|
|
9008
|
-
}, duration *
|
|
9016
|
+
}, duration * 800);
|
|
9009
9017
|
},
|
|
9010
9018
|
|
|
9011
9019
|
_handleTouchCancel: function _handleTouchCancel (event) {
|
package/package.json
CHANGED