diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-02-18 23:26:23 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-02-18 23:26:23 +0100 |
| commit | befe7d822ce7024b0557fdc3b92db2458b2fbac8 (patch) | |
| tree | f48401a1bfb59da72d47c30e09867f44cc3a743e /src/Interface.cs | |
| parent | 0ba19d7abc6850e01a96d500023ae95f7c03c3ac (diff) | |
drag and drop operations
Diffstat (limited to 'src/Interface.cs')
| -rw-r--r-- | src/Interface.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Interface.cs b/src/Interface.cs index e1bd7533..becd37ce 100644 --- a/src/Interface.cs +++ b/src/Interface.cs @@ -206,6 +206,8 @@ namespace Crow /// </summary> public static Dictionary<String, Instantiator> Instantiators = new Dictionary<string, Instantiator>(); public List<CrowThread> CrowThreads = new List<CrowThread>();//used to monitor thread finished + + public DragDropEventArgs DragAndDropOperation = null; #endregion #region Private Fields @@ -824,12 +826,11 @@ namespace Crow MouseMoveEventArgs e = new MouseMoveEventArgs (x, y, deltaX, deltaY); e.Mouse = Mouse; - if (ActiveWidget != null) { + if (ActiveWidget != null&& DragAndDropOperation == null) { //TODO, ensure object is still in the graphic tree //send move evt even if mouse move outside bounds ActiveWidget.onMouseMove (this, e); - if (!ActiveWidget.IsDragged)//if active is dragged, process mouse move as it was not visible. - return true; + return true; } if (HoverWidget != null) { |