scrollBy

abstract fun scrollBy(scope: CoroutineScope, dx: Int, dy: Int): Deferred<Unit>

异步将整个页面按指定的偏移量进行滚动。

Return

一个 Deferred<Unit>

Parameters

scope

用于执行此操作的协程作用域。

dx

横向滚动的距离。

dy

纵向滚动的距离。