1 Commits

Author SHA1 Message Date
Bingxi Zhao (Frank)
2e7cd82409 follow-up to #1351: clamp toward the band, do not subtract it
The clamp read `min(clampedTop, rowCenter - lowerMargin)`, and
`rowCenter - 0.75h` is always the smaller of the two, so every cue
subtracted three quarters of a viewport from the centring offset — putting
the active row below the bottom edge, or pinned at the top for early cues.
The intent was to move only when the row leaves the middle 50%.

The arithmetic *is* the behaviour, so it moves to a pure
`transcriptFollowScrollTop` with the six cases pinned: inside the band
(no scroll at all, so the list stops creeping under the reader), above it,
below it, first cue, last cue, and a list too short to scroll.

(cherry picked from commit 0e51f652024d755460ea122447548d40e9285c16)
2026-09-10 23:55:18 +08:00