perform drag - VeleSSemecky/Purchase GitHub Wiki

//presentation/com.veles.purchase.presentation.compose/SwipeableState/performDrag

performDrag

[androidJvm]
fun performDrag(delta: Float): Float

Force swipeable to consume drag delta provided from outside of the regular swipeable gesture flow.

Note: This method performs generic drag and it won't settle to any particular anchor, * leaving swipeable in between anchors. When done dragging, performFling must be called as well to ensure swipeable will settle at the anchor.

In general cases, swipeable drags by itself when being swiped. This method is to be used for nested scroll logic that wraps the swipeable. In nested scroll developer may want to force drag when the child scroll container reaches the bound.

Return

the amount of delta consumed

Parameters

androidJvm

delta delta in pixels to drag by
⚠️ **GitHub.com Fallback** ⚠️