]> O.S.I.I.S - jp/crow.git/commitdiff
dragNdrop AcceptDrop debug
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Sat, 27 Mar 2021 18:47:29 +0000 (19:47 +0100)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Sat, 27 Mar 2021 18:47:29 +0000 (19:47 +0100)
Crow/src/Widgets/Widget.cs

index 866f51c5c4bfcf7fe0ae4974ac89d899b9b7e0d1..81f085258855619b16c1f1109a58b9fb5b92dd8c 100644 (file)
@@ -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) {