determineTargetIndex
abstract fun determineTargetIndex(velocity: Float, decayAnimationSpec: DecayAnimationSpec<Float>, maximumFlingDistance: Float): Int(source)
Calculate the desired target which should be scrolled to for the given velocity.
Parameters
velocity
Velocity of the fling. This can be 0.
decayAnimationSpec
The decay fling animation spec.
maximumFlingDistance
The maximum distance in pixels which should be scrolled.