Splitwirez
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
src/Avalonia.Controls/ToggleSwitch.cs
|
|
|
@ -228,6 +228,8 @@ namespace Avalonia.Controls |
|
|
|
{ |
|
|
|
if (_isDragging) |
|
|
|
{ |
|
|
|
e.Handled = true; |
|
|
|
|
|
|
|
bool shouldBecomeChecked = Canvas.GetLeft(_knobsPanel!) >= (_switchKnob!.Bounds.Width / 2); |
|
|
|
_knobsPanel!.ClearValue(Canvas.LeftProperty); |
|
|
|
|
|
|
|
|