rotaryWithScroll
fun Modifier.rotaryWithScroll(scrollableState: ScrollableState, focusRequester: FocusRequester = rememberActiveFocusRequester(), flingBehavior: FlingBehavior? = ScrollableDefaults.flingBehavior(), rotaryHaptics: RotaryHapticHandler = rememberRotaryHapticHandler(scrollableState), reverseDirection: Boolean = false): Modifier
A modifier which connects rotary events with scrollable. This modifier supports scroll with fling.
Parameters
scrollableState
Scrollable state which will be scrolled while receiving rotary events
focusRequester
Requests the focus for rotary input. By default comes from rememberActiveFocusRequester, which is used with HierarchicalFocusCoordinator
flingBehavior
Logic describing fling behavior. If null fling will not happen.
rotaryHaptics
Class which will handle haptic feedback
reverseDirection
Reverse the direction of scrolling. Should be aligned with Scrollable reverseDirection
parameter