Class

DragDetectionState.AwaitDown

Starter state for any drag gesture cycle.

Common
class AwaitDown(
        var awaitTouchSlop: AwaitTouchSlop = AwaitTouchSlop.NotInitialized,
        var consumedOnInitial: Boolean = false,
    ) : DragDetectionState()

Starter state for any drag gesture cycle. At this state we're waiting for a Down event to indicate that a drag gesture may start. Since drag gesture start at the initial pass we have the option to indicate if we consumed the event during the initial pass using consumedOnInitial. We also save the awaitTouchSlop between passes so we don't call the DragGestureNode.startDragImmediately as often.