[PR #13291] Update the scrollbar postiton on scrollToMark #29463

Open
opened 2026-01-31 09:35:05 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/13291

State: closed
Merged: Yes


When I moved this into ControlCore, I forgot that UserScrollViewport is usually triggered by the scrollbar updating, so it doesn't ask the UI to update. Since this logic is in ControlCore, it's sorta in a weird place where it needs to communicate both up and down:

  • update the Terminal's viewport position
  • update the TermControl's scrollbar position

Checklist:

**Original Pull Request:** https://github.com/microsoft/terminal/pull/13291 **State:** closed **Merged:** Yes --- When I moved this into ControlCore, I forgot that UserScrollViewport is usually triggered by the scrollbar updating, so it doesn't ask the UI to update. Since this logic is in ControlCore, it's sorta in a weird place where it needs to communicate both up and down: * update the `Terminal`'s viewport position * update the `TermControl`'s scrollbar position Checklist: * [x] Closes a bug bash bug * [x] Missed in #12948 * See also #11000
claunia added the pull-request label 2026-01-31 09:35:05 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#29463