drawerGesturesEnabled is true whenever the drawer is in transition (target != current)

This commit is contained in:
davotoula
2026-03-16 19:04:01 +01:00
parent bf6ee6dc87
commit 9d95817b4d
@@ -149,7 +149,10 @@ fun AppNavigation(
navBackStackEntry?.destination?.let { dest ->
dest.hasRoute<Route.Home>() || dest.hasRoute<Route.Message>()
} ?: 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(