drag

abstract suspend fun drag(dragPriority: MutatePriority = MutatePriority.Default, block: suspend DragScope.() -> Unit)

Call this function to take control of drag logic.

All actions that change the logical drag position must be performed within a drag block (even if they don't call any other methods on this object) in order to guarantee that mutual exclusion is enforced.

If drag is called from elsewhere with the dragPriority higher or equal to ongoing drag, ongoing drag will be canceled.

Parameters

dragPriority

of the drag operation

block

to perform drag in