From de658e50f58607e6a0bcb2cdaaca28ca81d83b50 Mon Sep 17 00:00:00 2001 From: bobzel Date: Thu, 23 Sep 2021 22:16:52 -0400 Subject: cleanup --- src/client/views/collections/CollectionStackedTimeline.tsx | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/client/views/collections/CollectionStackedTimeline.tsx b/src/client/views/collections/CollectionStackedTimeline.tsx index 8b937c278..929bfa055 100644 --- a/src/client/views/collections/CollectionStackedTimeline.tsx +++ b/src/client/views/collections/CollectionStackedTimeline.tsx @@ -583,9 +583,7 @@ export class CollectionStackedTimeline extends CollectionSubView< d.anchor, start + (10 / timelineContentWidth) * this.clipDuration ); - const left = this.props.trimming ? - ((start - this.props.clipStart) / this.clipDuration) * timelineContentWidth - : Math.max((start - this.trimStart) / this.props.trimDuration() * timelineContentWidth, 0); + const left = Math.max((start - this.props.clipStart) / this.clipDuration * timelineContentWidth, 0); const top = (d.level / maxLevel) * this.timelineContentHeight() + 15; const timespan = end - start; const width = (timespan / this.clipDuration) * timelineContentWidth; @@ -632,9 +630,7 @@ export class CollectionStackedTimeline extends CollectionSubView<
@@ -649,8 +645,7 @@ export class CollectionStackedTimeline extends CollectionSubView< className="collectionStackedTimeline-trim-controls" style={{ left: `${((this.trimStart - this.props.clipStart) / this.clipDuration) * 100}%`, - width: `${((this.trimEnd - this.trimStart) / this.clipDuration) * 100 - }%`, + width: `${((this.trimEnd - this.trimStart) / this.clipDuration) * 100}%`, }} >
-- cgit v1.2.3-70-g09d2