calculateScrollDistance
open override fun calculateScrollDistance(velocityX: Int, velocityY: Int): IntArray
Content copied to clipboard
Calculates the estimated scroll distance in each direction given velocities on both axes. This method is overridden to constrain velocityY to the value of maxFlingVelocityPx.
Throws
when scroller is null
or maxFlingVelocityPx is null
.