mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-21 20:47:03 -05:00
Fix PTR extra offset calculation (#10172)
This commit is contained in:
parent
60150423d7
commit
356fc5b524
1 changed files with 1 additions and 1 deletions
|
@ -196,7 +196,7 @@ private class PullToRefreshStateImpl(
|
||||||
val newOffset = (distancePulled + available.y).coerceAtLeast(0f)
|
val newOffset = (distancePulled + available.y).coerceAtLeast(0f)
|
||||||
val dragConsumed = newOffset - distancePulled
|
val dragConsumed = newOffset - distancePulled
|
||||||
distancePulled = newOffset
|
distancePulled = newOffset
|
||||||
verticalOffset = calculateVerticalOffset() + (extraVerticalOffset * progress)
|
verticalOffset = calculateVerticalOffset() + (extraVerticalOffset * progress.coerceIn(0f, 1f))
|
||||||
dragConsumed
|
dragConsumed
|
||||||
}
|
}
|
||||||
return Offset(0f, y)
|
return Offset(0f, y)
|
||||||
|
|
Loading…
Reference in a new issue