fix(studio): fit preview reset to composition dimensions (#1085)

* fix(studio): fit preview reset to composition dimensions

* fix(core): keep runtime root resolution explicit

* fix(studio): resume playback after keep-playing seek
This commit is contained in:
Miguel Ángel
2026-05-26 23:44:39 -04:00
committed by GitHub
parent 3cd6cd6a1c
commit 3a24aed9bc
7 changed files with 265 additions and 187 deletions
@@ -0,0 +1,21 @@
export function shouldResumeForwardPlaybackAfterSeek(input: {
keepPlaying: boolean;
wasReverseShuttle: boolean;
storeWasPlaying: boolean;
duration: number;
nextTime: number;
}): boolean {
return (
input.keepPlaying &&
!input.wasReverseShuttle &&
input.storeWasPlaying &&
(input.duration <= 0 || input.nextTime < input.duration)
);
}
export function shouldStopAfterSeek(input: {
keepPlaying: boolean;
wasReverseShuttle: boolean;
}): boolean {
return !input.keepPlaying || input.wasReverseShuttle;
}