Commit bc37783
committed
Fix list scroll position drifting up after UI refresh
When the post count didn't change, apply_timeline_selection skipped
set_selection if the index was already correct. This left any scroll
drift from in-place set_string calls (LB_DELETESTRING + LB_INSERTSTRING
while frozen) uncorrected, causing the viewport to sit a few rows above
the selected item after a UI update.
Always call set_selection so EnsureVisible runs after thaw, regardless
of whether the selection index changed.1 parent 936bb93 commit bc37783
1 file changed
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
| 139 | + | |
143 | 140 | | |
144 | 141 | | |
145 | 142 | | |
| |||
0 commit comments