computeScrollVectorForPosition

Compute the scroll vector for a given target position.

This method can return null if the layout manager cannot calculate a scroll vector for the given position (e.g. it has no current scroll position).

Return

the scroll vector for a given target position

Parameters

targetPosition

the position to which the scroller is scrolling