rememberScrollState

@Composable
fun rememberScrollState(x: Int = 0, y: Int = 0): ScrollState

Creates and remembers a ScrollState starting at x, y.

A later change to x or y neither recreates the state nor moves the pane; scroll it afterwards through the returned state's ScrollState.x and ScrollState.y.

Parameters

x

the view coordinate to show at the viewport's left edge.

y

the view coordinate to show at the viewport's top edge.