Skip to content

Add option to center waveform video position also while paused#12562

Merged
niksedk merged 1 commit into
mainfrom
feature/waveform-center-when-paused
Jul 17, 2026
Merged

Add option to center waveform video position also while paused#12562
niksedk merged 1 commit into
mainfrom
feature/waveform-center-when-paused

Conversation

@niksedk

@niksedk niksedk commented Jul 17, 2026

Copy link
Copy Markdown
Member

Fixes #12555.

Problem

In SE 4 the waveform Center/lock toggle kept the play-head centered regardless of playback state, and the mouse wheel moved the video position instead of the view — so you could scrub through the audio as one continuous strip with the cursor pinned to the middle, and (combined with "select current subtitle") whatever line landed under the cursor was auto-selected. In v5 the Center toggle only centers during playback; while paused, wheel-scrubbing jumps half a page whenever the cursor leaves the view.

Fix

New setting "Center video position also while paused" (Settings → Waveform/spectrogram, default off — no behavior change for existing users). When enabled together with the waveform Center toggle:

  • Continuous wheel scrubbing: with "Mouse-wheel sets video position" on, every wheel step recenters the view so the waveform scrolls as one continuous strip (SE 4's locked mode) instead of jumping when the play-head exits the visible range.
  • Paused recentering: any paused position change (waveform click, shortcuts) recenters the view on the play-head. Only actual position changes recenter — the view stays free to scroll around manually while the play-head is at rest, unlike SE 4's hard lock.
  • Scrub selection: "Select current subtitle while playing" now also applies while scrubbing paused, selecting the line under the centered cursor. Change-gated so it doesn't steal back a selection the user just made in the grid.

To get the full SE 4 workflow from the issue: enable the waveform Center toggle, Mouse-wheel sets video position, Select current subtitle while playing, and the new option.

The select-current scan was extracted from the 50 ms timer into a shared SelectCurrentSubtitleAtPlayhead helper, used by both the playing and paused paths.

🤖 Generated with Claude Code

The waveform "Center" toggle only kept the play-head centered during
playback; in SE 4 the center/lock mode also worked while paused, so
mouse-wheel scrubbing walked the audio as one continuous strip with the
cursor pinned to the middle. Fixes #12555.

New setting "Center video position also while paused" (default off,
Settings - Waveform). When enabled together with the Center toggle:

- Mouse-wheel position scrubbing keeps the cursor centered on every
  step instead of jumping half a page when it leaves the view.
- Any paused position change (waveform click, shortcuts) recenters the
  view. Only actual changes recenter, so the user can still scroll
  around the waveform freely while the play-head is at rest.
- "Select current subtitle while playing" also applies while scrubbing
  paused, selecting the line under the centered cursor. Change-gated so
  it doesn't steal back a manual grid selection.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@niksedk
niksedk merged commit afd85d5 into main Jul 17, 2026
1 of 3 checks passed
@niksedk
niksedk deleted the feature/waveform-center-when-paused branch July 17, 2026 08:15
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.

Where is the Center button in V5?

1 participant