diff options
| author | mehekj <mehek.jethani@gmail.com> | 2021-11-09 16:04:24 -0500 |
|---|---|---|
| committer | mehekj <mehek.jethani@gmail.com> | 2021-11-09 16:04:24 -0500 |
| commit | dee64c39f722dfa9502bd5b590aa4349e053784e (patch) | |
| tree | 795aebc61d87dabbbb63a46e6c0195a4b43950b5 /src/client/views/collections/CollectionStackedTimeline.tsx | |
| parent | ffbd40b2a8ebdd49b4bc08b8edaf8aee699d12d3 (diff) | |
fixed clearTimeout defaults and label marker playback
Diffstat (limited to 'src/client/views/collections/CollectionStackedTimeline.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionStackedTimeline.tsx | 10 |
1 files changed, 5 insertions, 5 deletions
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(); |
