Skip to content

fix(explain): repaint the original panel during strip drag/reset#16

Merged
silviot merged 1 commit into
mainfrom
fix/explain-orig-panel-desync
Jun 2, 2026
Merged

fix(explain): repaint the original panel during strip drag/reset#16
silviot merged 1 commit into
mainfrom
fix/explain-orig-panel-desync

Conversation

@silviot

@silviot silviot commented Jun 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fixes the cosmetic desync flagged in the pre-merge review of #13: on /explain, dragging the flat strip moved the log / bend / exp panels but left the original frozen, which then snapped to the accumulated pan on the next full re-render (source switch or resize).

The orig panel already consumes panU/panV (src/explain/main.ts:215, comment "zoomed/turned by the pan"), but the drag (:412) and reset (:429) handlers scheduled only ['log','bend','exp']. This adds 'orig' to both schedule() calls so it follows the others live — restoring the explainer's "drag one, all follow" contract.

Change

Two lines: schedule(['log','bend','exp'])schedule(['orig','log','bend','exp']) in the drag and reset handlers. No change to the other panels or any other code path.

Test plan

  • npm run check — 0 errors / 0 warnings
  • npm test — 44/44
  • npm run build — clean (only the explain bundle hash changes; main untouched)

Closes #15

🤖 Generated with Claude Code

The drag and reset handlers scheduled only log/bend/exp, but the
original panel also consumes panU/panV, so it stayed frozen during a
drag and then snapped to the accumulated pan on the next full
re-render (source switch or resize). Add 'orig' to both schedule()
calls so it follows the others live, matching its stated intent.

Fixes #15

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@silviot silviot merged commit f3e79a7 into main Jun 2, 2026
1 check passed
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.

explain: original panel desyncs from strip drag until full re-render

1 participant