Browse Source

DragDropDevice: Check root is platform enabled before handling raw event

5940-dragdrop-modal
mat1jaczyyy 5 years ago
parent
commit
75fc3ec841
  1. 2
      src/Avalonia.Input/DragDropDevice.cs

2
src/Avalonia.Input/DragDropDevice.cs

@ -91,7 +91,7 @@ namespace Avalonia.Input
public void ProcessRawEvent(RawInputEventArgs e)
{
if (!e.Handled && e is RawDragEvent margs)
if (!e.Handled && e is RawDragEvent margs && e.Root?.IsPlatformEnabled != false)
ProcessRawEvent(margs);
}

Loading…
Cancel
Save