Skip to content

Commit 739869c

Browse files
committed
fix: unable to scroll more long scrollbar when shorter one reached its limit (#1806)
Signed-off-by: leo <longshuang@msn.cn>
1 parent a7890f1 commit 739869c

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
@@ -1259,7 +1259,7 @@ private void OnTextViewScrollChanged(object sender, ScrollChangedEventArgs e)
12591259
if (diff.ScrollOffset.NearlyEquals(_scrollViewer.Offset))
12601260
return;
12611261

1262-
if (IsPointerOver || !e.OffsetDelta.NearlyEquals(Vector.Zero))
1262+
if (IsPointerOver || e.OffsetDelta.SquaredLength > 1.0f)
12631263
{
12641264
diff.ScrollOffset = _scrollViewer.Offset;
12651265

0 commit comments

Comments
 (0)