aboutsummaryrefslogtreecommitdiffstatsci
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-02-15 14:04:52 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2016-02-15 14:04:52 +0100
commit2def04e1eec8b2ae2ee1cf952a2975f8ca6e8b05 (patch)
treec987d3b1d3ebfb8a631136274524d52fd8c56459
parent413cc890b171f24691ec8d62d30634c2972d1234 (diff)
test mouse is in in reverse order
-rw-r--r--src/GraphicObjects/Group.cs8
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()