Skip to content

fix: unpaused line draws ahead of dot#3

Open
barvian wants to merge 1 commit intobenjitaylor:mainfrom
barvian:unpause-fixes
Open

fix: unpaused line draws ahead of dot#3
barvian wants to merge 1 commit intobenjitaylor:mainfrom
barvian:unpause-fixes

Conversation

@barvian
Copy link

@barvian barvian commented Feb 21, 2026

When unpausing I noticed the line draws ahead of the dot:

before.mov

I had Claude try to address this, and this is what it looks like now:

after.mov

It's still not quite as smooth as I would hope but I think it's a little better?

During unpause catch-up, filterRight expanded past `now` as
pauseProgress decayed, letting data points from the pause period
(which have real-time timestamps ahead of the chart's lagging `now`)
into the visible set. These mapped to X positions past the live tip,
breaking the spline's monotone-X assumption and causing the line to
extend past the dot.

Fix: cap filterRight to `now` while time debt is active.
@barvian barvian changed the title Unpause fixes fix: unpaused line draws ahead of dot Feb 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant