From dee64c39f722dfa9502bd5b590aa4349e053784e Mon Sep 17 00:00:00 2001
From: mehekj <mehek.jethani@gmail.com>
Date: Tue, 9 Nov 2021 16:04:24 -0500
Subject: fixed clearTimeout defaults and label marker playback

---
 src/client/views/collections/CollectionStackedTimeline.tsx | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

(limited to 'src/client/views/collections/CollectionStackedTimeline.tsx')

diff --git a/src/client/views/collections/CollectionStackedTimeline.tsx b/src/client/views/collections/CollectionStackedTimeline.tsx
index 5352b5220..8c98afdb3 100644
--- a/src/client/views/collections/CollectionStackedTimeline.tsx
+++ b/src/client/views/collections/CollectionStackedTimeline.tsx
@@ -52,7 +52,7 @@ type PanZoomDocument = makeInterface<[]>;
 const PanZoomDocument = makeInterface();
 export type CollectionStackedTimelineProps = {
     Play: () => void;
-    Pause: (timeoutClear: boolean) => void;
+    Pause: () => void;
     playLink: (linkDoc: Doc) => void;
     playFrom: (seekTimeInSeconds: number, endTime?: number) => void;
     playing: () => boolean;
@@ -227,7 +227,7 @@ export class CollectionStackedTimeline extends CollectionSubView<
         const shiftKey = e.shiftKey;
         if (rect && this.props.isContentActive()) {
             const wasPlaying = this.props.playing();
-            if (wasPlaying) this.props.Pause(true);
+            if (wasPlaying) this.props.Pause();
             var wasSelecting = this._markerEnd !== undefined;
             setupMoveUpEvents(
                 this,
@@ -429,7 +429,7 @@ export class CollectionStackedTimeline extends CollectionSubView<
         const seekTimeInSeconds = this.anchorStart(anchorDoc) - 0.25;
         const endTime = this.anchorEnd(anchorDoc);
         if (this.layoutDoc.autoPlayAnchors) {
-            if (this.props.playing()) this.props.Pause(true);
+            if (this.props.playing()) this.props.Pause();
             else {
                 this.props.playFrom(seekTimeInSeconds, endTime);
                 this.scrollToTime(seekTimeInSeconds);
@@ -440,7 +440,7 @@ export class CollectionStackedTimeline extends CollectionSubView<
                 endTime > NumCast(this.layoutDoc._currentTimecode)
             ) {
                 if (!this.layoutDoc.autoPlayAnchors && this.props.playing()) {
-                    this.props.Pause(true);
+                    this.props.Pause();
                 } else {
                     this.props.Play();
                 }
@@ -463,7 +463,7 @@ export class CollectionStackedTimeline extends CollectionSubView<
             seekTimeInSeconds < NumCast(this.layoutDoc._currentTimecode) + 1e-4 &&
             endTime > NumCast(this.layoutDoc._currentTimecode) - 1e-4
         ) {
-            if (this.props.playing()) this.props.Pause(true);
+            if (this.props.playing()) this.props.Pause();
             else if (this.layoutDoc.autoPlayAnchors) this.props.Play();
             else if (!this.layoutDoc.autoPlayAnchors) {
                 const rect = this._timeline?.getBoundingClientRect();
-- 
cgit v1.2.3-70-g09d2

