From 75fc3ec8418d13bdc2e00e9bb19fe685cb17185c Mon Sep 17 00:00:00 2001 From: mat1jaczyyy Date: Sat, 10 Jul 2021 04:39:08 +0200 Subject: [PATCH] DragDropDevice: Check root is platform enabled before handling raw event --- src/Avalonia.Input/DragDropDevice.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Avalonia.Input/DragDropDevice.cs b/src/Avalonia.Input/DragDropDevice.cs index 30a08eda17..34289ef254 100644 --- a/src/Avalonia.Input/DragDropDevice.cs +++ b/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); }