Skip to content

Commit 3b5babb

Browse files
committed
Make AutoScrollToFirstChange() work reliably in Side-By-Side Diff
Both of the SingleSideTextDiffPresenter instances need to be scrolled/synced for this to work reliably. (To see where it failed, open a Side-By-Side Diff where the first change-block would be out-of-view, then toggle `Show All Lines` - when enabling the latter, the first change-block would NOT be correctly scrolled-to.)
1 parent e2feac3 commit 3b5babb

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/Views/TextDiffView.axaml.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -805,9 +805,6 @@ private void AutoScrollToFirstChange()
805805
if (DataContext is not ViewModels.TextDiffContext ctx)
806806
return;
807807

808-
if (ctx.IsSideBySide() && !IsOld)
809-
return;
810-
811808
var curBlock = ctx.BlockNavigation.GetCurrentBlock();
812809
if (curBlock == null)
813810
return;

0 commit comments

Comments
 (0)