Skip to content

Commit aa40b07

Browse files
committed
fix typo
1 parent 002bce8 commit aa40b07

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Avalonia.Base/Input/GestureRecognizers/ScrollGestureRecognizer.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ public class ScrollGestureRecognizer : GestureRecognizer
1414
private bool _canHorizontallyScroll;
1515
private bool _canVerticallyScroll;
1616
private bool _isScrollInertiaEnabled;
17-
private readonly static int s_defatultScrollStartDistance = (int)((AvaloniaLocator.Current?.GetService<IPlatformSettings>()?.GetTapSize(PointerType.Touch).Height ?? 10) / 2);
18-
private int _scrollStartDistance = s_defatultScrollStartDistance;
17+
private readonly static int s_defaultScrollStartDistance = (int)((AvaloniaLocator.Current?.GetService<IPlatformSettings>()?.GetTapSize(PointerType.Touch).Height ?? 10) / 2);
18+
private int _scrollStartDistance = s_defaultScrollStartDistance;
1919

2020
private bool _scrolling;
2121
private Point _trackedRootPoint;
@@ -56,7 +56,7 @@ public class ScrollGestureRecognizer : GestureRecognizer
5656
public static readonly DirectProperty<ScrollGestureRecognizer, int> ScrollStartDistanceProperty =
5757
AvaloniaProperty.RegisterDirect<ScrollGestureRecognizer, int>(nameof(ScrollStartDistance),
5858
o => o.ScrollStartDistance, (o, v) => o.ScrollStartDistance = v,
59-
unsetValue: s_defatultScrollStartDistance);
59+
unsetValue: s_defaultScrollStartDistance);
6060

6161
/// <summary>
6262
/// Gets or sets a value indicating whether the content can be scrolled horizontally.

0 commit comments

Comments
 (0)