mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-25 21:07:20 -08:00
Make sure SyncScrollOffset is updated after JumpToChangeBlock()
This commit is contained in:
parent
2edf01db3b
commit
cabf1e84d3
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue