Skip to content

Commit c7e557c

Browse files
love-lingerbiancode
authored andcommitted
fix: unable to scroll more long scrollbar when shorter one reached its limit (sourcegit-scm#1806)
Signed-off-by: leo <[email protected]>
1 parent f9f362f commit c7e557c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Views/TextDiffView.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1501,7 +1501,7 @@ private void OnTextViewScrollChanged(object sender, ScrollChangedEventArgs e)
15011501
if (diff.SyncScrollOffset.NearlyEquals(_scrollViewer.Offset))
15021502
return;
15031503

1504-
if (IsPointerOver || !e.OffsetDelta.NearlyEquals(Vector.Zero))
1504+
if (IsPointerOver || e.OffsetDelta.SquaredLength > 1.0f)
15051505
{
15061506
diff.SyncScrollOffset = _scrollViewer.Offset;
15071507

0 commit comments

Comments
 (0)