Join Slack
Powered by
How might you implement drag velocity… Like the sc...
# compose
a
Alexander Black
08/08/2021, 3:48 PM
How might you implement drag velocity… Like the scroll fling behavior in a scroll view? I have detectHorizontalDragGestures working, but I’d love to have some continuous movement in a widget that I’m building after you stop dragging.
a
Albert Chang
08/08/2021, 5:31 PM
https://developer.android.com/reference/kotlin/androidx/compose/ui/input/pointer/util/VelocityTracker
👍 2
🙌 1
🎉 1
a
Alexander Black
08/08/2021, 5:43 PM
@Albert Chang
Beautiful!!! Thank you so much
13
Views
Open in Slack
Previous
Next