Skip to content

Commit

Permalink
Merge branch 'develop' into rc/release-1.0.0-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Gladkov committed Apr 29, 2022
2 parents afe4748 + 77d0641 commit 6f5c503
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ internal fun BoxScope.BottomModalSheet(
}

Box(modifier = Modifier.fillMaxSize()) {
if (bundle.closeOnSwipe){
if (bundle.closeOnSwipe) {
modifier = modifier.swipeable(
state = swipeableState,
anchors = anchors,
Expand All @@ -89,7 +89,7 @@ internal fun BoxScope.BottomModalSheet(
}

LaunchedEffect(bundle.dialogState, swipeableState.offset.value) {
if (swipeableState.offset.value == viewHeight) {
if (swipeableState.offset.value == viewHeight && bundle.dialogState !is ModalDialogState.Close) {
modalController.setTopDialogState(ModalDialogState.Close())
}

Expand Down

0 comments on commit 6f5c503

Please sign in to comment.