Make sure SyncScrollOffset is updated after JumpToChangeBlock()

This commit is contained in:
goran-w 2024-11-16 13:31:39 +01:00
parent 2edf01db3b
commit cabf1e84d3

View file

@ -1589,6 +1589,8 @@ namespace SourceGit.Views
foreach (var p in v.Editor.Presenter.GetVisualDescendants().OfType<ThemedTextDiffPresenter>()) foreach (var p in v.Editor.Presenter.GetVisualDescendants().OfType<ThemedTextDiffPresenter>())
{ {
p.JumpToChangeBlock((int)e.NewValue); p.JumpToChangeBlock((int)e.NewValue);
if (p is SingleSideTextDiffPresenter ssp)
ssp.ForceSyncScrollOffset();
} }
} }
}); });