parent
b96c6c603d
commit
24d83f4063
@ -191,7 +191,8 @@ fun PagerScaffold(
|
|||||||
object : NestedScrollConnection {
|
object : NestedScrollConnection {
|
||||||
private var pullDownTotalY: Float? = 0f
|
private var pullDownTotalY: Float? = 0f
|
||||||
override fun onPreScroll(available: Offset, source: NestedScrollSource): Offset {
|
override fun onPreScroll(available: Offset, source: NestedScrollSource): Offset {
|
||||||
val diff = widgetsScrollState.value - available.y
|
if (!isWidgetsScrollZero) return Offset.Zero
|
||||||
|
val diff = -available.y
|
||||||
var totalY = pullDownTotalY ?: return available
|
var totalY = pullDownTotalY ?: return available
|
||||||
if (diff >= 0) return super.onPreScroll(available, source)
|
if (diff >= 0) return super.onPreScroll(available, source)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user