From 6360f5e939e4b30ed330478a4075dd7007a8a26e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Philippe=20Bruy=C3=A8re?= Date: Sat, 27 Mar 2021 19:47:29 +0100 Subject: [PATCH] dragNdrop AcceptDrop debug --- Crow/src/Widgets/Widget.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Crow/src/Widgets/Widget.cs b/Crow/src/Widgets/Widget.cs index 866f51c5..81f08525 100644 --- a/Crow/src/Widgets/Widget.cs +++ b/Crow/src/Widgets/Widget.cs @@ -1954,7 +1954,11 @@ namespace Crow if (IFace.DragAndDropInProgress) { if (IFace.dragndropHover != this) { IFace.dragndropHover = this; - if (AllowDrop && IFace.DragAndDropOperation.DragSource.AcceptDrop (this)) +#if DEBUG_DRAGNDROP + Debug.WriteLine($"DragNDropHover = {this.ToString()} AllowDrop:{AllowDrop}, {IFace.DragAndDropOperation.DragSource.AllowedDropTypes}"); +#endif + + if (AllowDrop && AcceptDrop (IFace.DragAndDropOperation.DragSource)) onDragEnter (this, IFace.DragAndDropOperation); } } else if (IFace.HoverWidget != this) { -- 2.47.3