Fix notification shade opening by accident

Close #139
This commit is contained in:
MM20 2022-09-03 15:16:36 +02:00
parent b96c6c603d
commit 24d83f4063
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389

View File

@ -191,7 +191,8 @@ fun PagerScaffold(
object : NestedScrollConnection {
private var pullDownTotalY: Float? = 0f
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
if (diff >= 0) return super.onPreScroll(available, source)