You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed the same predictive back gesture animation repeating when quickly started again
If you start a new predictive back gesture before the current gesture is fully finished, the same animation is started again. Instead, it should do nothing and allow the current animation to finish.
Copy file name to clipboardExpand all lines: extensions-compose-experimental/src/commonMain/kotlin/com/arkivanov/decompose/extensions/compose/experimental/stack/animation/DefaultStackAnimation.kt
+47-27Lines changed: 47 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ internal class DefaultStackAnimation<C : Any, T : Any>(
53
53
) {
54
54
var currentStack by remember { mutableStateOf(stack) }
55
55
var items by remember { mutableStateOf(getAnimationItems(newStack = currentStack)) }
56
-
var nextItems:Map<Any, AnimationItem<C, T>>? by remember { mutableStateOf(null) }
56
+
var nextItems:Map<String, AnimationItem<C, T>>? by remember { mutableStateOf(null) }
57
57
val stackKeys = remember(stack) { stack.items.map { it.key } }
58
58
val currentStackKeys = remember(currentStack) { currentStack.items.map { it.key } }
59
59
@@ -150,7 +150,7 @@ internal class DefaultStackAnimation<C : Any, T : Any>(
0 commit comments