determine Target Index
open override fun determineTargetIndex( velocity: Float, decayAnimationSpec: DecayAnimationSpec<Float>, maximumFlingDistance: Float): Int
Content copied to clipboard
Calculate the desired target which should be scrolled to for the given velocity.
Parameters
velocity
Velocity of the fling. This can be 0.
decay Animation Spec
The decay fling animation spec.
maximum Fling Distance
The maximum distance in pixels which should be scrolled.