Skip to content

Commit 2e6bf38

Browse files
authored
Update BottomSheetDialog.kt
attach empty pointerScrollable modifier to connect nestedScrollEvent with non-scrollable content
1 parent ee55b39 commit 2e6bf38

File tree

1 file changed

+4
-0
lines changed
  • bottomsheetdialog-compose/src/main/kotlin/com/holix/android/bottomsheetdialog/compose

1 file changed

+4
-0
lines changed

bottomsheetdialog-compose/src/main/kotlin/com/holix/android/bottomsheetdialog/compose/BottomSheetDialog.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
package com.holix.android.bottomsheetdialog.compose
22

3+
import androidx.compose.foundation.gestures.Orientation
4+
import androidx.compose.foundation.gestures.rememberScrollableState
5+
import androidx.compose.foundation.gestures.scrollable
36
import android.annotation.SuppressLint
47
import android.content.Context
58
import android.graphics.Outline
@@ -279,6 +282,7 @@ fun BottomSheetDialog(
279282
BottomSheetDialogLayout(
280283
Modifier
281284
.nestedScroll(rememberNestedScrollInteropConnection())
285+
.scrollable(state = rememberScrollableState{ 0f }, orientation = Orientation.Vertical)
282286
.semantics { dialog() },
283287
) {
284288
currentContent()

0 commit comments

Comments
 (0)