Function

verticalDrag

Reads vertical position change events for [pointerId] and calls [onDrag] for every change in position.

verticalDrag

Common
suspend fun AwaitPointerEventScope.verticalDrag(
    pointerId: PointerId,
    onDrag: (PointerInputChange) -> Unit,
): Boolean

Reads vertical position change events for pointerId and calls onDrag for every change in position. If pointerId is raised, a new pointer is chosen from those that are down and if none exist, the method returns. This does not wait for touch slop

Example Usage:

Returns

true if the vertical drag completed normally or false if the drag motion was canceled by another gesture detector consuming position change events.