making sure the disappearing modifier is not doing anything when the top or bottom bars are not present.
This commit is contained in:
+2
-2
@@ -51,14 +51,14 @@ fun DisappearingScaffold(
|
||||
val topBehavior =
|
||||
enterAlwaysScrollBehavior(
|
||||
canScroll = {
|
||||
isActive() && accountViewModel.settings.isImmersiveScrollingActive()
|
||||
topBar != null && isActive() && accountViewModel.settings.isImmersiveScrollingActive()
|
||||
},
|
||||
reverseLayout = isInvertedLayout,
|
||||
)
|
||||
val bottomBehavior =
|
||||
BottomAppBarDefaults.exitAlwaysScrollBehavior(
|
||||
canScroll = {
|
||||
isActive() && accountViewModel.settings.isImmersiveScrollingActive()
|
||||
(bottomBar != null || floatingButton != null) && isActive() && accountViewModel.settings.isImmersiveScrollingActive()
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user