diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-03-27 19:47:29 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-03-27 19:47:29 +0100 |
| commit | 6360f5e939e4b30ed330478a4075dd7007a8a26e (patch) | |
| tree | 7aae26ad352a93ed9cd10e57593407968c985ade | |
| parent | 3d6183203a7e2f6595c6b50acbaf4f54c81add10 (diff) | |
dragNdrop AcceptDrop debug
| -rw-r--r-- | Crow/src/Widgets/Widget.cs | 6 |
1 files changed, 5 insertions, 1 deletions
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) { |