Skip to content

Commit

Permalink
fix(infiniteloading): infiniteloading 点击后再滑动,操作出现异常 (jdf2e#1919)
Browse files Browse the repository at this point in the history
  • Loading branch information
jqroom authored Jan 31, 2024
1 parent 8ee2aeb commit 39a8e7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/packages/infiniteloading/infiniteloading.taro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
1 change: 1 addition & 0 deletions src/packages/infiniteloading/infiniteloading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 39a8e7b

Please sign in to comment.