Source set: Common
class AwaitDown(
var awaitTouchSlop: AwaitTouchSlop = AwaitTouchSlop.NotInitialized,
var consumedOnInitial: Boolean = false,
var hasSeenInitialEvent: 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.
Members
AwaitTouchSlop
Source set: Common
enum class AwaitTouchSlop {
Yes,
No,
NotInitialized,
}
Members
Yes
Source set: Common
Yes
No
Source set: Common
No
NotInitialized
Source set: Common
NotInitialized