Hello! How to enable LazyColumn scrolling by gestu...
# compose-desktop
p
Hello! How to enable LazyColumn scrolling by gestures? Now I'm able to scroll only by mouse wheel.
d
you can use
draggable
and manually scroll it by delta
like so
Copy code
draggable(
    orientation = Orientation.Vertical,
    state = rememberDraggableState {delta->
        coroutineScope.launch {
            scrollableState.scrollBy(-delta)
        }
    },
)
p
Thanks! It works.
l
@Daniyar Mukhanov Is there a way to add velocity after putting the finger out just like scrolling with the mouse?