ScrollHandler

constructor(initialMaxValue: Float = 0.0f)

Parameters

initialMaxValue

the initial maximum scroll amount.


constructor(setScrollAmount: (Float) -> Unit = {}, maxScrollDistance: Float = 0.0f)

Deprecated (with error)

Use the primary constructor. `initialMaxValue` replaces `maxScrollDistance`, and you can register a `ScrollListener` instead of using `setScrollAmount`.

Handles scroll events.

Parameters

setScrollAmount

called when the scroll amount changes.

maxScrollDistance

the initial maximum scroll amount.