From: jpbruyere Date: Mon, 22 Aug 2016 21:13:49 +0000 (+0200) Subject: set sender of mouse leave to widget loosing mouse X-Git-Tag: v0.5~7^2~6 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=e270b1803ed482c6f6346696ffbf568580c50ab7;p=jp%2Fcrow.git set sender of mouse leave to widget loosing mouse --- diff --git a/src/Interface.cs b/src/Interface.cs index fc977fc4..5ad638b4 100644 --- a/src/Interface.cs +++ b/src/Interface.cs @@ -572,7 +572,7 @@ namespace Crow int i = 0; while (i < idxhw) { if (GraphicTree [i].MouseIsIn (e.Position)) { - HoverWidget.onMouseLeave (this, e); + HoverWidget.onMouseLeave (HoverWidget, e); GraphicTree [i].checkHoverWidget (e); return true; } @@ -585,7 +585,7 @@ namespace Crow HoverWidget.checkHoverWidget (e); return true; } else { - HoverWidget.onMouseLeave (this, e); + HoverWidget.onMouseLeave (HoverWidget, e); //seek upward from last focused graph obj's while (HoverWidget.Parent as GraphicObject != null) { HoverWidget = HoverWidget.Parent as GraphicObject; @@ -593,7 +593,7 @@ namespace Crow HoverWidget.checkHoverWidget (e); return true; } else - HoverWidget.onMouseLeave (this, e); + HoverWidget.onMouseLeave (HoverWidget, e); } } }