diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-15 14:04:52 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-15 14:04:52 +0100 |
| commit | 2def04e1eec8b2ae2ee1cf952a2975f8ca6e8b05 (patch) | |
| tree | c987d3b1d3ebfb8a631136274524d52fd8c56459 /src/GraphicObjects | |
| parent | 413cc890b171f24691ec8d62d30634c2972d1234 (diff) | |
test mouse is in in reverse order
Diffstat (limited to 'src/GraphicObjects')
| -rw-r--r-- | src/GraphicObjects/Group.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/GraphicObjects/Group.cs b/src/GraphicObjects/Group.cs index cb9ac846..12d8c705 100644 --- a/src/GraphicObjects/Group.cs +++ b/src/GraphicObjects/Group.cs @@ -274,11 +274,10 @@ namespace Crow HostContainer.hoverWidget = this; onMouseEnter (this, e); } - foreach (GraphicObject g in Children) - { - if (g.MouseIsIn(e.Position)) + for (int i = Children.Count - 1; i >= 0; i--) { + if (Children[i].MouseIsIn(e.Position)) { - g.checkHoverWidget (e); + Children[i].checkHoverWidget (e); return; } } @@ -286,6 +285,7 @@ namespace Crow } #endregion + #region IXmlSerializable public override System.Xml.Schema.XmlSchema GetSchema() |