How to change touchSlop (or any other property) in ViewConfiguration of current composable in JetpackCompose

In this tutorial, I will show you how you can change the ViewConfiguration touchSlop value which is defined as the “Distance in pixels a touch can wander before we think the user is scrolling”. From its definition, you can see that it is sometimes useful to change it to any value other than the default value. For example, if you want to create a drawing feature or if you want to implement a draggable composable without waiting for touch to wander before considering it as a drag gesture.

How to change touchSlop (or any other property) in ViewConfiguration of current composable in JetpackCompose Read More ยป