aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/Interface.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-02-18 23:26:23 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-02-18 23:26:23 +0100
commit0e44a661c488b012b9fc0eb56fec23ac8786436c (patch)
treeb8d815c971bb47254c9973e15b87aecb100144c2 /src/Interface.cs
parentac3e60a3c49a2a1175564fbc994d3aed47c6bfb4 (diff)
drag and drop operations
Diffstat (limited to 'src/Interface.cs')
-rw-r--r--src/Interface.cs7
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) {