smoothScrollTo

Like scrollTo, but scroll smoothly instead of immediately.

Parameters

x

the position where to scroll on the X axis

y

the position where to scroll on the Y axis


fun smoothScrollTo(x: Int, y: Int, scrollDurationMs: Int)(source)

Like scrollTo, but scroll smoothly instead of immediately.

Parameters

x

the position where to scroll on the X axis

y

the position where to scroll on the Y axis

scrollDurationMs

the duration of the smooth scroll operation in milliseconds