calculateScrollDistance

open fun calculateScrollDistance(velocityX: Int, velocityY: Int): Array<Int>(source)

Calculated the estimated scroll distance in each direction given velocities on both axes.

Return

array holding the calculated distances in x and y directions respectively.

Parameters

velocityX

Fling velocity on the horizontal axis.

velocityY

Fling velocity on the vertical axis.