ScrollAxisRange

Class

Common
class ScrollAxisRange(
    val value: () -> Float,
    val maxValue: () -> Float,
    val reverseScrolling: Boolean = false,
)

The scroll state of one axis if this node is scrollable.

Parameters

valuecurrent 0-based scroll position value (either in pixels, or lazy-item count)
maxValuemaximum bound for value, or Float.POSITIVE_INFINITY if still unknown
reverseScrollingfor horizontal scroll, when this is true, 0 value will mean right, whenfalse, 0 value will mean left. For vertical scroll, when this is true, 0 value will mean bottom, when false, 0 value will mean top