aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/Group.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-02-15 15:39:16 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2016-02-15 15:39:16 +0100
commit0bba9f0c7fb86e3af67f7ce8a0f42f87b914976c (patch)
tree2dec4541ef1dc2c37baf99da77dd088a15d04826 /src/GraphicObjects/Group.cs
parent1a1b87d5505bd98321dfcab4fb00da3ee5767a1c (diff)
Added Hoverable prop to GraphicObject, still have problem in tabview when hover another tab, content is also hover
Diffstat (limited to 'src/GraphicObjects/Group.cs')
-rw-r--r--src/GraphicObjects/Group.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/GraphicObjects/Group.cs b/src/GraphicObjects/Group.cs
index 12d8c705..68c92e2a 100644
--- a/src/GraphicObjects/Group.cs
+++ b/src/GraphicObjects/Group.cs
@@ -268,6 +268,16 @@ namespace Crow
#region Mouse handling
+ public override bool MouseIsIn (Point m)
+ {
+ if (Hoverable)
+ return base.MouseIsIn (m);
+ for (int i = Children.Count - 1; i >= 0; i--) {
+ if (Children[i].MouseIsIn(m))
+ return true;
+ }
+ return false;
+ }
public override void checkHoverWidget (MouseMoveEventArgs e)
{
if (HostContainer.hoverWidget != this) {