Skip to content

Commit 8f680dd

Browse files
authored
Merge pull request #12 from tahaak67/v1.0.7/target-subsequent-fix
Fix Target showcase disappear between indexes in subsequent mode
2 parents ca27494 + 2f1d616 commit 8f680dd

1 file changed

Lines changed: 2 additions & 19 deletions

File tree

showcase-layout-compose/src/commonMain/kotlin/ly/com/tahaben/showcase_layout_compose/ui/TargetShowcaseLayout.kt

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -402,28 +402,11 @@ fun TargetShowcaseLayout(
402402
}
403403

404404
} else {
405-
// When animateToNextTarget is true, we still want to fade out the outer circle
406-
// before moving to the next target, but we remove it
405+
// When animateToNextTarget is true, we don't want to fade out the outer circle
406+
// we just handle message animation if any then move to the next target
407407
coroutineScope.launch {
408408
handleMessageExitAnimation(message, messageTextAlpha, animationDuration)
409409

410-
// Fade out the entire canvas to make the circle completely disappear
411-
launch {
412-
canvasAlpha.animateTo(
413-
0f, // Fade to 30% opacity instead of 0 for smoother transition
414-
animationSpec = tween(
415-
durationMillis = animationDuration / 3,
416-
easing = FastOutSlowInEasing
417-
)
418-
)
419-
}
420-
421-
// Wait for animations to complete
422-
delay((animationDuration / 3).toLong())
423-
424-
// Reset canvas alpha for the next target
425-
canvasAlpha.snapTo(1f)
426-
427410
// Move to the next target
428411
currentIndex++
429412
}

0 commit comments

Comments
 (0)