From e64710073094cb0f79f590e9090f182c284405af Mon Sep 17 00:00:00 2001 From: MM20 <15646950+MM2-0@users.noreply.github.com> Date: Fri, 17 Apr 2026 17:32:20 +0200 Subject: [PATCH] disable swipe up to close search when results dont fill screen --- .../mm20/launcher2/ui/launcher/scaffold/LauncherScaffold.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/ui/src/main/java/de/mm20/launcher2/ui/launcher/scaffold/LauncherScaffold.kt b/app/ui/src/main/java/de/mm20/launcher2/ui/launcher/scaffold/LauncherScaffold.kt index 271f3df04..99d7a9caf 100644 --- a/app/ui/src/main/java/de/mm20/launcher2/ui/launcher/scaffold/LauncherScaffold.kt +++ b/app/ui/src/main/java/de/mm20/launcher2/ui/launcher/scaffold/LauncherScaffold.kt @@ -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 ||