diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2017-01-04 19:28:43 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2017-01-04 19:28:43 +0100 |
| commit | 0a309c9271d09893e682bd2568151f81036eae13 (patch) | |
| tree | 6bfd10e5624d9e0dbb26dc282f8ac1822b226b51 /src/Interface.cs | |
| parent | 88e6f84a15a0bdbdd29f39014afff19f4362b3e9 (diff) | |
debug menus
Diffstat (limited to 'src/Interface.cs')
| -rw-r--r-- | src/Interface.cs | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/src/Interface.cs b/src/Interface.cs index cb541fb0..542cf2dd 100644 --- a/src/Interface.cs +++ b/src/Interface.cs @@ -582,24 +582,22 @@ namespace Crow GraphicObject topc = null; while (tmp is GraphicObject) { topc = tmp; - tmp = tmp.Parent as GraphicObject; + tmp = tmp.LogicalParent as GraphicObject; } int idxhw = GraphicTree.IndexOf (topc); if (idxhw != 0) { int i = 0; while (i < idxhw) { - if (GraphicTree [i].MouseIsIn (e.Position)) { - while (HoverWidget != null) { - if (HoverWidget is Popper) { - if ((HoverWidget as Popper).Content == GraphicTree[i]) - break; + if (GraphicTree [i].localLogicalParentIsNull) { + if (GraphicTree [i].MouseIsIn (e.Position)) { + while (HoverWidget != null) { + HoverWidget.onMouseLeave (HoverWidget, e); + HoverWidget = HoverWidget.LogicalParent as GraphicObject; } - HoverWidget.onMouseLeave (HoverWidget, e); - HoverWidget = HoverWidget.LogicalParent as GraphicObject; - } - GraphicTree [i].checkHoverWidget (e); - return true; + GraphicTree [i].checkHoverWidget (e); + return true; + } } i++; } |