dimsuz
11/14/2022, 1:04 PMLazyColumn
? I need only to detect this fact and not interfere with the gesture itself in any way. Should I use lower level gesture detection modifiers?Albert Chang
11/14/2022, 1:42 PMval lazyListState = rememberLazyListState()
val isDragged by lazyListState.interactionSource.collectIsDraggedAsState()
LazyColumn(state = lazyListState) { ... }
dimsuz
11/14/2022, 3:32 PMdimsuz
11/14/2022, 3:39 PMisDragged
would be set to true only once and forever. Do I have to create another MutableState<Boolean>
and set it to true inside LanchedEffect(isDragged)
only once? seems overcomplicated.dimsuz
11/14/2022, 4:20 PMcollectIsDraggedAsState
and devised my own function which only waits for the first DragInteraction.Start