andrew
04/19/2022, 3:13 AMJohn Nichol
04/19/2022, 10:01 AMyschimke
04/19/2022, 10:18 AMpublic fun Modifier.scrollableColumn(
focusRequester: FocusRequester,
scrollableState: ScrollableState
): Modifier = composed {
val coroutineScope = rememberCoroutineScope()
onPreRotaryScrollEvent {
coroutineScope.launch {
scrollableState.scrollBy(it.verticalScrollPixels)
}
true
}
.focusRequester(focusRequester)
.focusable()
}
John Nichol
04/19/2022, 11:19 AMyschimke
04/19/2022, 11:59 AMandrew
04/20/2022, 2:04 PM