Skip to content

fix(compose): defer animation reads to draw/layout phase#842

Merged
bmc08gt merged 1 commit into
code/cashfrom
fix/compose-animation-phase-correctness
Jun 4, 2026
Merged

fix(compose): defer animation reads to draw/layout phase#842
bmc08gt merged 1 commit into
code/cashfrom
fix/compose-animation-phase-correctness

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

Replace Modifier.scale() with graphicsLayer lambda to defer scale reads to the draw phase instead of triggering recomposition on every frame. Replace .background() with drawBehind for per-frame alpha changes in TypingIndicator dots. Use derivedStateOf to coalesce animated float reads in FlippableCard front/back switching.

Replace Modifier.scale() with graphicsLayer lambda to defer scale reads
to the draw phase instead of triggering recomposition on every frame.
Replace .background() with drawBehind for per-frame alpha changes in
TypingIndicator dots. Use derivedStateOf to coalesce animated float
reads in FlippableCard front/back switching.
@bmc08gt bmc08gt self-assigned this Jun 4, 2026
@github-actions github-actions Bot added type: fix Bug fix area: ui Compose UI, theme, components, resources and removed type: fix Bug fix labels Jun 4, 2026
@bmc08gt bmc08gt merged commit 1a48040 into code/cash Jun 4, 2026
3 checks passed
@bmc08gt bmc08gt deleted the fix/compose-animation-phase-correctness branch June 4, 2026 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ui Compose UI, theme, components, resources

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant