We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9806405 commit 1de3721Copy full SHA for 1de3721
1 file changed
app/src/main/java/com/getcode/view/main/home/HomeScan.kt
@@ -459,8 +459,8 @@ private fun BillContainer(
459
460
LaunchedEffect(transition.isRunning, transition.targetState) {
461
// wait for spring settle to enable cancel to not prematurely cancel
462
- // the enter. doing so causing the exit of the bill to not run
463
- 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) {
464
delay(300)
465
canCancel = true
466
}
0 commit comments