updateDragPosition
fun updateDragPosition(dragY: Double, layout: CardListLayout, cards: List<CardLayoutItem>, params: CardListLayoutParameters): DragUpdateResult
Updates the active drag gesture to an absolute Y position dragY.
Return
DragUpdateResult indicating whether the card swapped index positions.
Parameters
dragY
absolute vertical position in coordinate space.
layout
computed CardListLayout.
cards
list of cards in current display order.
params
layout configuration parameters.