Skip to content

Commit ef62e8e

Browse files
committed
Make sure SyncScrollOffset is updated after JumpToChangeBlock()
1 parent bc02505 commit ef62e8e

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)