From 10142814c052152482e43da909fe1486b490adb8 Mon Sep 17 00:00:00 2001 From: letututu <10683844+letututu@user.noreply.gitee.com> Date: Tue, 2 Jul 2024 08:12:11 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8D=E6=BB=A1=E4=B8=80?= =?UTF-8?q?=E5=B1=8F=E6=95=B0=E6=8D=AE=EF=BC=8C=E6=97=A0=E6=B3=95=E4=B8=8A?= =?UTF-8?q?=E6=8B=89=E5=8A=A0=E8=BD=BD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: letututu <10683844+letututu@user.noreply.gitee.com> --- .../src/main/ets/components/PullToRefresh/PullToRefresh.ets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/src/main/ets/components/PullToRefresh/PullToRefresh.ets b/library/src/main/ets/components/PullToRefresh/PullToRefresh.ets index 0c7ba71..c85df80 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) { // 获取最新的位移距离 -- Gitee