Skip to content

Commit 96c6f70

Browse files
committed
restore property rename.
1 parent 405f593 commit 96c6f70

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Avalonia.Controls/Primitives/Track.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public class Track : Control
4444
AvaloniaProperty.Register<Track, bool>(nameof(IsDirectionReversed));
4545

4646
public static readonly StyledProperty<bool> IgnoreThumbDragProperty =
47-
AvaloniaProperty.Register<Track, bool>(nameof(IgnoreThumbDrag));
47+
AvaloniaProperty.Register<Track, bool>(nameof(IsThumbDragHandled));
4848

4949
private double _minimum;
5050
private double _maximum = 100.0;
@@ -118,7 +118,7 @@ public bool IsDirectionReversed
118118
set { SetValue(IsDirectionReversedProperty, value); }
119119
}
120120

121-
public bool IgnoreThumbDrag
121+
public bool IsThumbDragHandled
122122
{
123123
get { return GetValue(IgnoreThumbDragProperty); }
124124
set { SetValue(IgnoreThumbDragProperty, value); }
@@ -442,7 +442,7 @@ private void ButtonChanged(AvaloniaPropertyChangedEventArgs e)
442442

443443
private void ThumbDragged(object sender, VectorEventArgs e)
444444
{
445-
if (IgnoreThumbDrag)
445+
if (IsThumbDragHandled)
446446
return;
447447

448448
Value = MathUtilities.Clamp(

src/Avalonia.Controls/Slider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ protected override void OnApplyTemplate(TemplateAppliedEventArgs e)
194194

195195
if (_track != null)
196196
{
197-
_track.IgnoreThumbDrag = true;
197+
_track.IsThumbDragHandled = true;
198198
}
199199

200200
if (_decreaseButton != null)

0 commit comments

Comments
 (0)