From 00b09544ad1de6ef790806e7a6dfdbf3d063ea2c Mon Sep 17 00:00:00 2001 From: Quicksticks-oss Date: Sat, 30 Mar 2024 21:23:10 -0400 Subject: [PATCH] Fixed scrub reset issue. --- app/pages/PageEnigma/js/timeline.ts | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/app/pages/PageEnigma/js/timeline.ts b/app/pages/PageEnigma/js/timeline.ts index 55ab63b731..6fb6f592f1 100644 --- a/app/pages/PageEnigma/js/timeline.ts +++ b/app/pages/PageEnigma/js/timeline.ts @@ -248,9 +248,9 @@ export class TimeLine { this.scrubber_frame_position = this.current_time; } - //if (this.scrubber_frame_position <= 0) { - // await this.resetScene(); - //} + if (this.scrubber_frame_position <= 0) { + await this.resetScene(); + } //this.scrubber_frame_position += 1; //2. allow stopping. @@ -296,14 +296,9 @@ export class TimeLine { } //this.timelineItems = this.timelineItems.filter(item => item !== element) } - - // find the offset of the longest clip and play until that clip is done - if (this.scrubber_frame_position >= this.timeline_limit) { // stops at where clips should // cannot throw clip - this.stop() - } } - if (this.scrubber_frame_position >= this.timeline_limit) { + if (this.scrubber_frame_position >= this.timeline_limit && this.is_playing) { await this.stop(); } }