Bug 1907820 - Fix dragging sheet behaviour for all elements in the microsurvey r=android-reviewers,twhite

Differential Revision: https://phabricator.services.mozilla.com/D216674
This commit is contained in:
Vlad Dreghici 2024-07-16 10:56:36 +00:00
parent ed0853de48
commit 1736937b20

View file

@ -66,7 +66,10 @@ fun MicrosurveyBottomSheet(
shape = bottomSheetShape, shape = bottomSheetShape,
) { ) {
Column( Column(
modifier = Modifier.padding(vertical = 8.dp), modifier = Modifier
.padding(vertical = 8.dp)
.nestedScroll(rememberNestedScrollInteropConnection())
.verticalScroll(rememberScrollState()),
) { ) {
BottomSheetHandle( BottomSheetHandle(
onRequestDismiss = {}, onRequestDismiss = {},
@ -81,11 +84,6 @@ fun MicrosurveyBottomSheet(
onCloseButtonClicked() onCloseButtonClicked()
} }
Column(
modifier = Modifier
.nestedScroll(rememberNestedScrollInteropConnection())
.verticalScroll(rememberScrollState()),
) {
if (isSubmitted) { if (isSubmitted) {
MicrosurveyCompleted() MicrosurveyCompleted()
} else { } else {
@ -114,7 +112,6 @@ fun MicrosurveyBottomSheet(
} }
} }
} }
}
@PreviewScreenSizes @PreviewScreenSizes
@LightDarkPreview @LightDarkPreview