From 39a8e7b884790d8c9fa35e45db04f122bb1aa2f8 Mon Sep 17 00:00:00 2001 From: JQ Date: Wed, 31 Jan 2024 09:53:30 +0800 Subject: [PATCH] =?UTF-8?q?fix(infiniteloading):=20infiniteloading=20?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E5=90=8E=E5=86=8D=E6=BB=91=E5=8A=A8=EF=BC=8C?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E5=87=BA=E7=8E=B0=E5=BC=82=E5=B8=B8=20(#1919?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/packages/infiniteloading/infiniteloading.taro.tsx | 1 + src/packages/infiniteloading/infiniteloading.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/src/packages/infiniteloading/infiniteloading.taro.tsx b/src/packages/infiniteloading/infiniteloading.taro.tsx index 11f83380e1..59685bf7de 100644 --- a/src/packages/infiniteloading/infiniteloading.taro.tsx +++ b/src/packages/infiniteloading/infiniteloading.taro.tsx @@ -151,6 +151,7 @@ export const InfiniteLoading: FunctionComponent< if (distance.current < refreshMaxH.current) { distance.current = 0 setTopDisScoll(0) + isTouching.current = false } else { await onRefresh?.() refreshDone() diff --git a/src/packages/infiniteloading/infiniteloading.tsx b/src/packages/infiniteloading/infiniteloading.tsx index 73740f2a4b..dfc2111058 100644 --- a/src/packages/infiniteloading/infiniteloading.tsx +++ b/src/packages/infiniteloading/infiniteloading.tsx @@ -160,6 +160,7 @@ export const InfiniteLoading: FunctionComponent< if (distance.current < refreshMaxH.current) { distance.current = 0 getRefreshTop().style.height = `${distance.current}px` + isTouching.current = false } else { await onRefresh?.() refreshDone()