robnik
05/13/2021, 5:44 PMSwipeToDismiss
? The example here does not show it. I'm trying LaunchedEffect(dismissState.currentValue) {...}
, but there is a little delay that I don't like. More in thread...robnik
05/13/2021, 5:47 PMdismissState.currentValue == DismissedToStart
. I think the delay I see is because currentValue is also animated. So I swipe to delete, then there is a fraction of a second waiting for currentValue, and then the item in the list shrinks away upward.Doris Liu
05/13/2021, 8:33 PMVisibilityThreshold
- it's animating until it's within 0.01 pixel from the target, which can be perceived as a delay.
It's worth filing a bug on SwipeToDismiss
to allow customization on the swipe animation/spring animation instead of using the default. Also, the default could also benefit from a VisibilityThreshold
specific to pixels. 🙂robnik
05/13/2021, 11:33 PMDoris Liu
05/14/2021, 12:16 AMrobnik
05/14/2021, 12:23 AMDoris Liu
05/14/2021, 12:25 AMrobnik
05/14/2021, 12:29 AM