diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/collections/CollectionStackedTimeline.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionStackedTimeline.tsx b/src/client/views/collections/CollectionStackedTimeline.tsx index 8c98afdb3..78883b577 100644 --- a/src/client/views/collections/CollectionStackedTimeline.tsx +++ b/src/client/views/collections/CollectionStackedTimeline.tsx @@ -622,7 +622,7 @@ export class CollectionStackedTimeline extends CollectionSubView< if (end < this.clipStart || start > this.clipEnd) return (null); const left = Math.max((start - this.clipStart) / this.clipDuration * this.timelineContentWidth, 0); const top = (d.level / maxLevel) * this.props.PanelHeight(); - const timespan = Math.max(0, end - this.clipStart) - Math.max(0, start - this.clipStart); + const timespan = Math.max(0, Math.min(end - this.clipStart, this.clipEnd)) - Math.max(0, start - this.clipStart); const width = (timespan / this.clipDuration) * this.timelineContentWidth; const height = this.props.PanelHeight() / maxLevel; return this.props.Document.hideAnchors ? null : ( |