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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
src/Avalonia.Controls/Platform/InProcessDragSource.cs
|
|
@ -202,11 +202,11 @@ namespace Avalonia.Platform |
|
|
case RawPointerEventType.RightButtonUp: |
|
|
case RawPointerEventType.RightButtonUp: |
|
|
CheckDraggingAccepted(RawInputModifiers.RightMouseButton); break; |
|
|
CheckDraggingAccepted(RawInputModifiers.RightMouseButton); break; |
|
|
case RawPointerEventType.Move: |
|
|
case RawPointerEventType.Move: |
|
|
|
|
|
e.Handled = true; |
|
|
var mods = e.InputModifiers & MOUSE_INPUTMODIFIERS; |
|
|
var mods = e.InputModifiers & MOUSE_INPUTMODIFIERS; |
|
|
if (_initialInputModifiers.Value != mods) |
|
|
if (_initialInputModifiers.Value != mods) |
|
|
{ |
|
|
{ |
|
|
CancelDragging(); |
|
|
CancelDragging(); |
|
|
e.Handled = true; |
|
|
|
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|