We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f49301 commit a69e379Copy full SHA for a69e379
1 file changed
composeunstyled-modal-bottom-sheet/src/commonMain/kotlin/com/composeunstyled/ModalBottomSheet.kt
@@ -256,13 +256,11 @@ fun UnstyledModalBottomSheet(
256
state.bottomSheetState.isIdle,
257
state.bottomSheetState.currentDetent,
258
state.bottomSheetState.targetDetent,
259
- state.offset,
260
) {
261
if (
262
state.bottomSheetState.isIdle &&
263
state.bottomSheetState.currentDetent == SheetDetent.Hidden &&
264
- state.bottomSheetState.targetDetent == SheetDetent.Hidden &&
265
- state.offset <= 0.5f
+ state.bottomSheetState.targetDetent == SheetDetent.Hidden
266
267
completeDismiss()
268
}
0 commit comments