From: Jean-Philippe Bruyère Date: Sat, 27 Mar 2021 18:47:29 +0000 (+0100) Subject: dragNdrop AcceptDrop debug X-Git-Tag: v0.9.5-beta~41 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=6360f5e939e4b30ed330478a4075dd7007a8a26e;p=jp%2Fcrow.git dragNdrop AcceptDrop debug --- 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) {