- avoid updating seek time from UI if source of seek time is studio, … (#102)

…to avoid re-processing timeline info

- move generating animation to first thing in a frame, and notifying
about timeline changes to last, to ensure that it happens before the
time updates
- re-generate the animation tweens whenever you start playing or
manually seek a new time in the timeline to prevent inconsistencies
This commit is contained in:
Lee-Orr
2024-03-22 17:09:58 -04:00
committed by GitHub
parent 11dc7c7945
commit c890665e16
3 changed files with 32 additions and 35 deletions
@@ -200,7 +200,7 @@ export class AnimTimelineElement extends LitElement {
const seconds = (this.rangeEnd - this.rangeStart) * ratioX + this.rangeStart;
const updated = seconds;
this.dispatchEvent(new CustomEvent("playHead-change", { detail: updated }));
studio.seekTime(updated);
}
onKeyframeDrag(id: string, event: PointerEvent): void {