Skip to content

fix(runtime): show elements at exact end of their duration#1166

Merged
miguel-heygen merged 1 commit into
mainfrom
fix/runtime-inclusive-end-boundary
Jun 2, 2026
Merged

fix(runtime): show elements at exact end of their duration#1166
miguel-heygen merged 1 commit into
mainfrom
fix/runtime-inclusive-end-boundary

Conversation

@miguel-heygen
Copy link
Copy Markdown
Collaborator

@miguel-heygen miguel-heygen commented Jun 2, 2026

Summary

  • Visibility check used strict less-than (currentTime < end), hiding elements at exactly t=duration. Changed to <= so the last frame renders the final animation state.

Test plan

  • Seek to exactly t=5 on a 5s composition — elements visible at their 100% keyframe state
  • Play through the composition — elements don't persist one frame past their data-duration
  • Overlapping clips still hide/show correctly at boundaries

… boundary)

Visibility check used strict less-than (currentTime < end), hiding
elements at exactly t=duration. Changed to <= so the last frame
renders the final animation state.
@miguel-heygen miguel-heygen merged commit b652c0a into main Jun 2, 2026
47 of 63 checks passed
@miguel-heygen miguel-heygen deleted the fix/runtime-inclusive-end-boundary branch June 2, 2026 23:07
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.

1 participant