We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0ed5487 + a68ba83 commit 420c9d8Copy full SHA for 420c9d8
1 file changed
app/src/main/java/com/getcode/view/main/home/HomeScan.kt
@@ -450,8 +450,8 @@ private fun BillContainer(
450
451
LaunchedEffect(transition.isRunning, transition.targetState) {
452
// wait for spring settle to enable cancel to not prematurely cancel
453
- // the enter. doing so causing the exit of the bill to not run
454
- if (transition.targetState == EnterExitState.Visible && !transition.isRunning) {
+ // the enter. doing so causing the exit of the bill to not run, or run its own dismiss animation
+ if (transition.targetState == EnterExitState.Visible && transition.currentState == transition.targetState) {
455
delay(300)
456
canCancel = true
457
}
0 commit comments