Class

DragDetectionState.AwaitTouchSlop

If drag should wait for touch slop, after the initial down recognition we move to this state.

Source set: Common
class AwaitTouchSlop(
        var initialDown: PointerInputChange? = null,
        var pointerId: PointerId = PointerId(Long.MAX_VALUE),
        var verifyConsumptionInFinalPass: Boolean = false,
    ) : DragDetectionState()

If drag should wait for touch slop, after the initial down recognition we move to this state. Here we will collect drag events until touch slop is crossed.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: