PdfZoomScrollScope

interface PdfZoomScrollScope


Scope used for suspending scroll blocks

Summary

Public functions

Offset
scrollBy(delta: Offset)

Attempts to scroll forward by delta px.

Unit
zoomTo(zoomLevel: Float)

Instantly sets the zoom level to zoomLevel

Public functions

scrollBy

fun scrollBy(delta: Offset): Offset

Attempts to scroll forward by delta px.

Returns
Offset

the amount of requested scroll that was consumed (i.e. how far it scrolled)

zoomTo

Added in 1.0.0-alpha10
fun zoomTo(zoomLevel: Float): Unit

Instantly sets the zoom level to zoomLevel