diff --git a/PullToRefresh/oh-package.json5 b/PullToRefresh/oh-package.json5 index 9b8c05aa7596243ccce8e2504fa63dbe50ccd88e..43d9baa95e322898995ef13c32242a9c2b585173 100644 --- a/PullToRefresh/oh-package.json5 +++ b/PullToRefresh/oh-package.json5 @@ -14,7 +14,7 @@ "main": "index.ets", "repository": "https://gitee.com/openharmony-sig/PullToRefresh", "type": "module", - "version": "2.0.1", + "version": "2.0.2", "dependencies": {}, "tags": [ "UI" diff --git a/PullToRefresh/src/main/ets/components/PullToRefresh/PullToRefresh.ets b/PullToRefresh/src/main/ets/components/PullToRefresh/PullToRefresh.ets index c389064dff0c8c800860386208d2319cad444102..c121187cda02344370a7600541895a0e21b73e4a 100644 --- a/PullToRefresh/src/main/ets/components/PullToRefresh/PullToRefresh.ets +++ b/PullToRefresh/src/main/ets/components/PullToRefresh/PullToRefresh.ets @@ -262,7 +262,8 @@ export struct PullToRefresh { } else if (this.refreshConfigurator.getHasLoadMore()) { this.listOffsetNew = this.scroller.currentOffset().yOffset; // 列表处于底部位置且上滑时,2.已上滑时 - if ((this.state == IS_FREE && this.listOffsetOld == this.listOffsetNew && this.listOffsetOld != 0 && this.touchYNew < this.touchYOld) || + // @ts-ignore + if ((this.state == IS_FREE && this.listOffsetOld == this.listOffsetNew && this.listOffsetOld != 0 && this.touchYNew < this.touchYOld && this.scroller.isAtEnd()) || this.state == IS_PULL_UP_1 || this.state == IS_PULL_UP_2) { // 获取最新的位移距离 var trY = this.touchYNew - this.touchYOld; diff --git a/changelog.md b/changelog.md index 94e959b89b92a3bb2d0b586bcc26984e7295138d..5f2cd1f9cc7109db5b7426c226e4582df91981a7 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,7 @@ +## 2.0.2 + +1.修复在轻微上拉的过程中,可能会出现直接滑动到底部的问题。 + ## 2.0.1 1.修复上拉加载后上划到顶部无法触发下拉加载的问题。