diff --git a/app/release/app-release.apk b/app/release/app-release.apk index 578e0a3..c2bf98a 100644 Binary files a/app/release/app-release.apk and b/app/release/app-release.apk differ diff --git a/refresh/src/main/java/com/king/ultraswiperefresh/UltraSwipeRefreshNestedScrollConnection.kt b/refresh/src/main/java/com/king/ultraswiperefresh/UltraSwipeRefreshNestedScrollConnection.kt index 5152c3b..e29796b 100644 --- a/refresh/src/main/java/com/king/ultraswiperefresh/UltraSwipeRefreshNestedScrollConnection.kt +++ b/refresh/src/main/java/com/king/ultraswiperefresh/UltraSwipeRefreshNestedScrollConnection.kt @@ -6,6 +6,7 @@ import androidx.compose.ui.input.nestedscroll.NestedScrollSource import androidx.compose.ui.unit.Velocity import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.launch +import kotlin.math.absoluteValue /** * 主要用于处理和协调Header或Footer与内容多个元素之间的滚动事件。 @@ -55,7 +56,7 @@ internal class UltraSwipeRefreshNestedScrollConnection( } private fun onScroll(available: Offset): Offset { - if (available.y != 0f) { + if (available.y.absoluteValue > 0.5f) { if (state.indicatorOffset <= 0f && available.y < 0f && !loadMoreEnabled) { return Offset.Zero