Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit cabf1e8

Browse files
committed
Make sure SyncScrollOffset is updated after JumpToChangeBlock()
1 parent 2edf01d commit cabf1e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎src/Views/TextDiffView.axaml.cs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1589,6 +1589,8 @@ static TextDiffView()
15891589
foreach (var p in v.Editor.Presenter.GetVisualDescendants().OfType<ThemedTextDiffPresenter>())
15901590
{
15911591
p.JumpToChangeBlock((int)e.NewValue);
1592+
if (p is SingleSideTextDiffPresenter ssp)
1593+
ssp.ForceSyncScrollOffset();
15921594
}
15931595
}
15941596
});

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /