diff --git a/library/src/main/ets/components/PullToRefresh/PullToRefresh.ets b/library/src/main/ets/components/PullToRefresh/PullToRefresh.ets index 0c7ba714d6e43612900791480f81b08caf24c41a..c85df8098631acc1d43a9684fd53be427a684b0c 100644 --- a/library/src/main/ets/components/PullToRefresh/PullToRefresh.ets +++ b/library/src/main/ets/components/PullToRefresh/PullToRefresh.ets @@ -298,7 +298,7 @@ export struct PullToRefresh { // 列表处于底部位置且上滑时,2.已上滑时 try { if (this.touchYOld !== undefined) { - if ((this.state == IS_FREE && this.listOffsetOld == this.listOffsetNew && this.listOffsetOld != 0 && this.touchYNew < this.touchYOld && this.scroller.isAtEnd()) || + if ((this.state == IS_FREE && this.listOffsetOld == this.listOffsetNew && this.touchYNew < this.touchYOld && this.scroller.isAtEnd()) || this.state == IS_PULL_UP_1 || this.state == IS_PULL_UP_2) { // 获取最新的位移距离 let trY = this.touchYNew - this.touchYOld; @@ -323,7 +323,7 @@ export struct PullToRefresh { } } catch (error) { if (this.touchYOld !== undefined) { - if ((this.state == IS_FREE && this.listOffsetOld == this.listOffsetNew && this.listOffsetOld != 0 && this.touchYNew < this.touchYOld) || + if ((this.state == IS_FREE && this.listOffsetOld == this.listOffsetNew && this.touchYNew < this.touchYOld) || this.state == IS_PULL_UP_1 || this.state == IS_PULL_UP_2) { if (this.touchYNew !== undefined && this.touchYOld !== undefined && loadImgHeight !== undefined) { // 获取最新的位移距离