Skip to content

Fix timeline playhead alignment and scroll-on-select#58

Merged
cbaucom merged 1 commit into
mainfrom
fix/timeline-playhead-alignment
Jun 23, 2026
Merged

Fix timeline playhead alignment and scroll-on-select#58
cbaucom merged 1 commit into
mainfrom
fix/timeline-playhead-alignment

Conversation

@cbaucom

@cbaucom cbaucom commented Jun 23, 2026

Copy link
Copy Markdown
Owner

Summary

  • Align included timeline thumbnails to RenderPlan start frames (same time axis as the red playhead and audio lane) instead of cumulative packed layout — fixes drift after duration changes.
  • Auto-scroll follows the playhead only during playback; selecting a slide while paused scrolls that block into view once without snapping back to the stale playhead.
  • Synchronously update currentFrame on thumbnail seek so the playhead moves immediately.

Closes #57

Test plan

  • pnpm test / pnpm lint / pnpm build
  • Change global image duration — red line stays within the green "now playing" thumbnail
  • Change per-slide duration override — playhead stays aligned
  • Pause, scroll to a distant thumbnail, click it — viewport stays on (or scrolls to) that slide, not back to old playhead
  • Play slideshow — timeline auto-follows playhead
  • Zoom timeline while a slide is selected — viewport does not jump

Made with Cursor

Position media blocks on the render plan time axis so the red playhead
tracks thumbnails when durations change, and only auto-scroll during playback.

Co-authored-by: Cursor <cursoragent@cursor.com>
@cbaucom
cbaucom merged commit cb69148 into main Jun 23, 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.

Timeline playhead misaligned with thumbnails; unwanted auto-scroll on select

1 participant