{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

ScrollScope


Scope used for suspending scroll blocks

Summary

Public functions

Float
scrollBy(pixels: Float)

Attempts to scroll forward by pixels px.

Cmn

Public functions

scrollBy

fun scrollBy(pixels: Float): Float

Attempts to scroll forward by pixels px.

Returns
Float

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