disable swipe up to close search when results dont fill screen

This commit is contained in:
MM20
2026-04-17 17:32:20 +02:00
parent 47596ad484
commit e647100730

View File

@@ -464,8 +464,8 @@ internal class LauncherScaffoldState(
val delta = when {
!isAtTop && !isAtBottom -> delta.copy(y = 0f)
!isAtTop -> delta.copy(y = delta.y.coerceAtMost(-offset.y))
!isAtBottom -> delta.copy(y = delta.y.coerceAtLeast(-offset.y))
!isAtTop && isAtBottom -> delta.copy(y = delta.y.coerceAtMost(-offset.y))
isAtTop -> delta.copy(y = delta.y.coerceAtLeast(-offset.y))
else -> delta
}
val wasOverThreshold = currentOffset.x.absoluteValue > rubberbandThreshold ||