diff --git a/src/lib/playback/stores.ts b/src/lib/playback/stores.ts index 62c061d..736aad7 100644 --- a/src/lib/playback/stores.ts +++ b/src/lib/playback/stores.ts @@ -35,7 +35,8 @@ const setCurrentFrame = (index: number) => { $state.frame = newFrame; if ($state.frame.isFinalFrame && $state.mode == PlaybackMode.PLAYING) { - controls.pause(); + stopPlayback(); + $state.mode = PlaybackMode.PAUSED; if (settings.loop) { setTimeout(controls.firstFrame, LOOP_DELAY_MS); setTimeout(controls.play, LOOP_DELAY_MS * 2);