mirror of https://github.com/icsharpcode/ILSpy.git
Browse Source
Center-on-select reveals a navigated-to node centred in the viewport, but it was also yanking rows the user can already see: opening a visible row in a new tab (or any model-driven selection) pulled it to the middle. The skip cannot be decided from post-selection geometry because AutoScrollToSelectedItem first drags an off-screen row to an edge, making it look visible. Snapshot visibility in TreeSelectionBinder.SyncModelToTree before the selection changes: an already-visible primary is focused without scrolling, while a genuinely off-screen one (Back navigation, go-to-definition) is still centred. Assisted-by: Claude:claude-opus-4-8:Claude Codepull/3755/head
3 changed files with 106 additions and 6 deletions
Loading…
Reference in new issue