Jan
11/16/2022, 6:52 PMLazyList
.
The default implementation of SwipeToDismiss
will lead to accidental horizontal scrolling while trying to scroll vertically leading to accidental swipe to dismiss events.
In vanilla android view world I’d set a touch listener and check against x > y touch event distance before starting swipe to dismiss. However in Jetpack Compose I don’t know how.
I tried pointerInput
modifier, however it disabled vertical scrolling completely.
I’m aware of dismissThresholds
but that does only handle invoking the dissmissState
change.Jan
11/16/2022, 6:54 PMjossiwolf
11/16/2022, 6:55 PMste
11/16/2022, 7:31 PMColton Idle
11/16/2022, 9:51 PMJan
11/17/2022, 8:09 AM