From 9d95817b4d0cfd589fa7c2d7b4dada7ebeec5fad Mon Sep 17 00:00:00 2001 From: davotoula Date: Mon, 16 Mar 2026 19:04:01 +0100 Subject: [PATCH] drawerGesturesEnabled is true whenever the drawer is in transition (target != current) --- .../vitorpamplona/amethyst/ui/navigation/AppNavigation.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/navigation/AppNavigation.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/navigation/AppNavigation.kt index d91803756..a613eac3c 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/navigation/AppNavigation.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/navigation/AppNavigation.kt @@ -149,7 +149,10 @@ fun AppNavigation( navBackStackEntry?.destination?.let { dest -> dest.hasRoute() || dest.hasRoute() } ?: false - val drawerGesturesEnabled = !isTabPagerRoute || nav.drawerState.isOpen + val drawerGesturesEnabled = + !isTabPagerRoute || + nav.drawerState.isOpen || + nav.drawerState.targetValue != nav.drawerState.currentValue AccountSwitcherAndLeftDrawerLayout(accountViewModel, accountSessionManager, nav, drawerGesturesEnabled) { NavHost(