Skip to content

Fix final animation frame completion#27

Open
i9496752-source wants to merge 1 commit into
ameyms:masterfrom
i9496752-source:codex/fix-mobile-final-frame
Open

Fix final animation frame completion#27
i9496752-source wants to merge 1 commit into
ameyms:masterfrom
i9496752-source:codex/fix-mobile-final-frame

Conversation

@i9496752-source

Copy link
Copy Markdown

Summary

  • finish the tween by writing the exact target value when elapsed time reaches the duration
  • split RAF cancellation from value finalization so unmounting does not call setState

Why

Fixes #15. Mobile browsers can occasionally miss the last animation paint, leaving the rendered value stuck at the previous interpolated frame instead of the target value.

Validation

  • git diff --check
  • npm pack --dry-run --ignore-scripts

Full dependency installation/build was not completed because both yarn and npm dependency fetches stalled in this environment before producing node_modules or lockfile changes.

@i9496752-source
i9496752-source marked this pull request as ready for review May 12, 2026 12:31
@i9496752-source i9496752-source changed the title [codex] Fix final animation frame completion Fix final animation frame completion May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sometimes last frame is missed on mobile

1 participant