smoothScrollBy

fun smoothScrollBy(dx: Int, dy: Int)(source)

Like scrollBy, but scroll smoothly instead of immediately.

Parameters

dx

the number of pixels to scroll by on the X axis

dy

the number of pixels to scroll by on the Y axis


fun smoothScrollBy(dx: Int, dy: Int, scrollDurationMs: Int)(source)

Like scrollBy, but scroll smoothly instead of immediately.

Parameters

dx

the number of pixels to scroll by on the X axis

dy

the number of pixels to scroll by on the Y axis

scrollDurationMs

the duration of the smooth scroll operation in milliseconds