Jeremiah Simonsen
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
4 additions and
4 deletions
-
src/Avalonia.Controls/ToggleSwitch.cs
|
|
|
@ -255,14 +255,14 @@ namespace Avalonia.Controls |
|
|
|
{ |
|
|
|
if (_knobsPanelPressed) |
|
|
|
{ |
|
|
|
if(_knobsPanel != null) |
|
|
|
{ |
|
|
|
_knobsPanel.Transitions = null; |
|
|
|
} |
|
|
|
var difference = e.GetPosition(_switchKnob) - _switchStartPoint; |
|
|
|
|
|
|
|
if ((!_isDragging) && (System.Math.Abs(difference.X) > 3)) |
|
|
|
{ |
|
|
|
if (_knobsPanel != null) |
|
|
|
{ |
|
|
|
_knobsPanel.Transitions = null; |
|
|
|
} |
|
|
|
_isDragging = true; |
|
|
|
PseudoClasses.Set(":dragging", true); |
|
|
|
} |
|
|
|
|