]> O.S.I.I.S - jp/crow.git/commitdiff
ProcessMouseMove method copied, work in progress saved for branch switching
authorjpbruyere <jp.bruyere@hotmail.com>
Wed, 11 Jan 2017 06:57:27 +0000 (07:57 +0100)
committerjpbruyere <jp.bruyere@hotmail.com>
Wed, 11 Jan 2017 06:57:27 +0000 (07:57 +0100)
src/GraphicObjects/GraphicObject.cs
src/Interface.cs

index 253328327c0c830be7c7666a330583dc9c3daf77..18745fa135e32fe95094e1bea263f56379c3017a 100644 (file)
@@ -1172,7 +1172,7 @@ namespace Crow
                        if (p != null)
                                p.onMouseMove(sender,e);
 
-                       MouseMove.Raise (sender, e);
+                       MouseMove.Raise (this, e);
                }
                public virtual void onMouseDown(object sender, MouseButtonEventArgs e){
                        if (CurrentInterface.eligibleForDoubleClick == this && CurrentInterface.clickTimer.ElapsedMilliseconds < Interface.DoubleClick)
index 542cf2dd7af090acdc113ac5a6c7aa49f2fd6508..88e71b672e04d674b1e1419f58f27abf565c0c07 100644 (file)
@@ -568,10 +568,10 @@ namespace Crow
                        MouseMoveEventArgs e = new MouseMoveEventArgs (x, y, deltaX, deltaY);
                        e.Mouse = Mouse;
 
-                       if (_activeWidget != null) {
+                       if (activeWidget != null) {
                                //TODO, ensure object is still in the graphic tree
                                //send move evt even if mouse move outside bounds
-                               _activeWidget.onMouseMove (this, e);
+                               activeWidget.onMouseMove (this, e);
                                return true;
                        }