ScrollScope

sealed interface ScrollScope

The receiver of a ScrollState.scroll block, through which the block moves the pane.

A block owns the position for as long as it runs, and scrollTo is the only move that is the block's own: every other move of the position ends the block instead, as ScrollState.scroll describes.

Functions

Link copied to clipboard
abstract fun scrollTo(x: Int, y: Int)

Moves the pane to x, y in view coordinates, coerced to what the content reaches.