From 3d27ef285c760984346123913c51201069aa381d Mon Sep 17 00:00:00 2001 From: Chris Amow Date: Fri, 4 Sep 2026 03:32:42 -0500 Subject: [PATCH] Show End trendline here for any click after the first anchor. It used to require a time past last_t, so a line whose second point already sits at the live edge never offered the item. --- static/chart.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/chart.js b/static/chart.js index 002f4ef..fabbc37 100644 --- a/static/chart.js +++ b/static/chart.js @@ -3309,7 +3309,8 @@ class ConfluenceChart { Math.abs(bar.t - point.t) < Math.abs(nearest.t - point.t) ? bar : nearest ).t; this.contextLineId = level.id; - this.contextCutoff = cutoff > level.last_t ? cutoff : null; + const origin = Math.min(level.anchor_t, level.last_t); + this.contextCutoff = cutoff != null && cutoff > origin ? cutoff : null; this.contextEndButton.hidden = this.contextCutoff == null; this.contextExtendButton.hidden = level.cutoff_t == null; this.contextMenu.hidden = false;