ScrollHandler
Parameters
initialMaxValue
the initial maximum scroll amount.
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.