From: jpbruyere Date: Wed, 11 Jan 2017 06:57:27 +0000 (+0100) Subject: ProcessMouseMove method copied, work in progress saved for branch switching X-Git-Tag: v0.9.5-beta~259^2~11 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=e296cc3262bcd30b2e916b4660e39b903704bd86;p=jp%2Fcrow.git ProcessMouseMove method copied, work in progress saved for branch switching --- diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs index 25332832..18745fa1 100644 --- a/src/GraphicObjects/GraphicObject.cs +++ b/src/GraphicObjects/GraphicObject.cs @@ -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) diff --git a/src/Interface.cs b/src/Interface.cs index 542cf2dd..88e71b67 100644 --- a/src/Interface.cs +++ b/src/Interface.cs @@ -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; }