Composables UI is out: our new component library for Compose Multiplatform ->
Interface

Scroll2DScope

Scope used for suspending scroll blocks

Source set: Common
interface Scroll2DScope

Scope used for suspending scroll blocks

Functions

scrollBy

fun scrollBy(delta: Offset): Offset

Attempts to scroll forward by delta px.

Returns

the amount of the requested scroll that was consumed (that is, how far it scrolled)

Last updated: