Skip to content

Trimmer timeline zoom#36

Merged
kentcdodds merged 1 commit into
mainfrom
cursor/trimmer-timeline-zoom-5b86
Jan 28, 2026
Merged

Trimmer timeline zoom#36
kentcdodds merged 1 commit into
mainfrom
cursor/trimmer-timeline-zoom-5b86

Conversation

@kentcdodds
Copy link
Copy Markdown
Member

@kentcdodds kentcdodds commented Jan 27, 2026

Add timeline zoom and navigation controls to the video trimmer page to improve precision and ease of making trims.

The original timeline lacked the ability to focus on specific segments, making precise trim adjustments difficult, especially for short durations. These controls address that by allowing users to magnify sections, pan through the video, and quickly jump to key points or existing trims.


Open in Cursor Open in Web


Note

Adds interactive zooming and navigation to the trimmer timeline for precise edits.

  • Introduces zoom/window state (MIN/MAX_ZOOM, setZoom, setWindowStart, panWindow, ensurePlayheadVisible, zoomToRange), with timeline ticks and playhead positioning relative to the view
  • Waveform rendering slices samples to the visible window; ranges are clipped/indicated in-view with gradients; clicking the track moves the playhead
  • New controls: navigate (start/end, ±1s, prev/next trim, center view), zoom (slider ±, fit), and view window slider with pan; "Zoom to selection" action
  • CSS: new classes for interactive track, clipped ranges, playhead state, timeline controls/layout; responsive tweaks for controls

Written by Cursor Bugbot for commit 9cea5b4. This will update automatically on new commits. Configure here.

Co-authored-by: me <me@kentcdodds.com>
@cursor
Copy link
Copy Markdown

cursor Bot commented Jan 27, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@kentcdodds kentcdodds marked this pull request as ready for review January 27, 2026 03:17
@kentcdodds kentcdodds merged commit d68538a into main Jan 28, 2026
6 checks passed
@kentcdodds kentcdodds deleted the cursor/trimmer-timeline-zoom-5b86 branch January 28, 2026 16:36
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 1.14.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants