From 4e9d0e4c1d0dcd30f8c10bcf0fd89081d2ae0ddc Mon Sep 17 00:00:00 2001 From: digital-garbage <133010426+digital-garbage@users.noreply.github.com> Date: Mon, 8 Jun 2026 00:31:37 +0300 Subject: [PATCH] Movie Editor: Play from end-of-timeline restarts from the beginning If the playhead is at/past the end (or on no clip) when Play is pressed, reset it to 0 and play from the top instead of doing nothing. Co-Authored-By: Claude Opus 4.8 --- movie_editor/frontend/player.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/movie_editor/frontend/player.js b/movie_editor/frontend/player.js index a1021c54..cf586b17 100644 --- a/movie_editor/frontend/player.js +++ b/movie_editor/frontend/player.js @@ -181,6 +181,8 @@ } function _play() { + // At (or past) the end of the timeline → loop the playhead back to the start. + if (_phSec >= (_totalSecCur || 0) - 0.05 || !_clipFrom(_phSec)) _phSec = 0; const clip = _clipFrom(_phSec); if (!clip) return; if (_phSec < clip.startSec) _phSec = clip.startSec;