Fix PTR extra offset calculation (#10172)
(cherry picked from commit 356fc5b524f2da6957ad9bb198d15082dda8b14f)
This commit is contained in:
parent
102551b995
commit
ee722a7276
@ -196,7 +196,7 @@ private class PullToRefreshStateImpl(
|
||||
val newOffset = (distancePulled + available.y).coerceAtLeast(0f)
|
||||
val dragConsumed = newOffset - distancePulled
|
||||
distancePulled = newOffset
|
||||
verticalOffset = calculateVerticalOffset() + (extraVerticalOffset * progress)
|
||||
verticalOffset = calculateVerticalOffset() + (extraVerticalOffset * progress.coerceIn(0f, 1f))
|
||||
dragConsumed
|
||||
}
|
||||
return Offset(0f, y)
|
||||
|
Loading…
x
Reference in New Issue
Block a user