mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-04 07:40:12 +08:00
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)