Skip to content

Commit

Permalink
restore property rename.
Browse files Browse the repository at this point in the history
  • Loading branch information
danwalmsley committed Jun 1, 2022
1 parent 405f593 commit 96c6f70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Avalonia.Controls/Primitives/Track.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class Track : Control
AvaloniaProperty.Register<Track, bool>(nameof(IsDirectionReversed));

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

private double _minimum;
private double _maximum = 100.0;
Expand Down Expand Up @@ -118,7 +118,7 @@ public bool IsDirectionReversed
set { SetValue(IsDirectionReversedProperty, value); }
}

public bool IgnoreThumbDrag
public bool IsThumbDragHandled
{
get { return GetValue(IgnoreThumbDragProperty); }
set { SetValue(IgnoreThumbDragProperty, value); }
Expand Down Expand Up @@ -442,7 +442,7 @@ private void ButtonChanged(AvaloniaPropertyChangedEventArgs e)

private void ThumbDragged(object sender, VectorEventArgs e)
{
if (IgnoreThumbDrag)
if (IsThumbDragHandled)
return;

Value = MathUtilities.Clamp(
Expand Down
2 changes: 1 addition & 1 deletion src/Avalonia.Controls/Slider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ protected override void OnApplyTemplate(TemplateAppliedEventArgs e)

if (_track != null)
{
_track.IgnoreThumbDrag = true;
_track.IsThumbDragHandled = true;
}

if (_decreaseButton != null)
Expand Down

0 comments on commit 96c6f70

Please sign in to comment.