visibleRange

fun visibleRange(scrollPx: Float, viewportWidthPx: Float): IntRange(source)

Which tiles a viewport viewportWidthPx wide shows when scrolled to scrollPx.

Return

The visible tiles, and an empty range for a strip with nothing in it.

Parameters

scrollPx

How far the strip has scrolled, in content pixels.

viewportWidthPx

How wide the strip is drawn.