Files
DeepTutor/web/components
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
..
2026-09-03 01:38:54 +08:00
2026-08-02 13:23:45 +08:00
2026-07-31 00:25:48 +08:00
2026-09-02 04:09:11 +08:00
2026-09-02 04:09:11 +08:00
2026-09-06 13:46:29 +08:00
2026-08-20 14:15:53 +08:00
2026-09-03 01:38:54 +08:00
2026-06-11 20:03:34 +08:00
2026-06-21 14:43:41 +08:00