Browse Source

In-process dnd should always handle pointermoved for consistency with actual dnd (#18287)

pull/18310/head
Nikita Tsukanov 12 months ago
committed by GitHub
parent
commit
e58c168545
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      src/Avalonia.Controls/Platform/InProcessDragSource.cs

2
src/Avalonia.Controls/Platform/InProcessDragSource.cs

@ -202,11 +202,11 @@ namespace Avalonia.Platform
case RawPointerEventType.RightButtonUp:
CheckDraggingAccepted(RawInputModifiers.RightMouseButton); break;
case RawPointerEventType.Move:
e.Handled = true;
var mods = e.InputModifiers & MOUSE_INPUTMODIFIERS;
if (_initialInputModifiers.Value != mods)
{
CancelDragging();
e.Handled = true;
return;
}

Loading…
Cancel
Save