reverseDirection

fun reverseDirection(layoutDirection: LayoutDirection, orientation: Orientation, reverseScrolling: Boolean): Boolean

Used to determine the value of reverseDirection parameter of Modifier.scrollable in scrollable layouts.

Return

true if scroll direction should be reversed, false otherwise.

Parameters

layoutDirection

current layout direction (e.g. from LocalLayoutDirection)

orientation

orientation of scroll

reverseScrolling

whether scrolling direction should be reversed