Commit 27943f8
committed
fix(core): cap the playable duration at the calculated document-level composition duration
The clock duration was max(gsap timeline, floors) with the declared
duration only ever acting as a floor — so one ambient tween authored
longer than the composition (a scene component's 20s background drift
inside a 12s composition) stretched playback into a blank tail: 8s of
empty frames after every clip had ended, the playhead pinned at the
timeline edge, and play-at-end then restarting from 0.
<html data-composition-duration> is machine-calculated from the content
schedule by every emitter that stamps it, so it is now a CEILING on the
playable duration. A composition HOST's data-duration deliberately stays
floor-only: hand/agent-authored documents often declare a stale value
there, and playing the full timeline remains the safer default (the
'keeps the timeline duration' test pins that).1 parent f49f44f commit 27943f8
2 files changed
Lines changed: 52 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
519 | 541 | | |
520 | 542 | | |
521 | 543 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
857 | 857 | | |
858 | 858 | | |
859 | 859 | | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
860 | 880 | | |
861 | 881 | | |
862 | 882 | | |
| |||
881 | 901 | | |
882 | 902 | | |
883 | 903 | | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
884 | 914 | | |
885 | 915 | | |
886 | 916 | | |
| |||
0 commit comments