Make sure SyncScrollOffset is updated after JumpToChangeBlock()

This commit is contained in:
goran-w 2024-11-16 13:31:39 +01:00
parent 5597d25313
commit dc5bd42477

View file

@ -1459,6 +1459,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();
} }
} }
}); });