Skip to content

Commit 8b01f8c

Browse files
Splitwirezmaxkatz6
authored andcommitted
Fixed ToggleSwitch dragging (#13893)
1 parent 1577338 commit 8b01f8c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Avalonia.Controls/ToggleSwitch.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ private void KnobsPanel_PointerReleased(object? sender, Input.PointerReleasedEve
228228
{
229229
if (_isDragging)
230230
{
231+
e.Handled = true;
232+
231233
bool shouldBecomeChecked = Canvas.GetLeft(_knobsPanel!) >= (_switchKnob!.Bounds.Width / 2);
232234
_knobsPanel!.ClearValue(Canvas.LeftProperty);
233235

0 commit comments

Comments
 (0)