diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2015-09-07 09:08:12 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2015-09-07 09:08:12 +0200 |
| commit | 167e50bf7c4af84a6793326e39b0d3e41d4eb8bf (patch) | |
| tree | 57a9239773e3eb0b60e648119ddb782db92439f3 /src/GraphicObjects/Group.cs | |
| parent | bacf29e47409c20292b6861e6ef40bfc2119eb7b (diff) | |
Focus improvments:
New function (checkHoverWidget) to check most inner control under the
mouse, than bubble onMouseMove through the parents
Diffstat (limited to 'src/GraphicObjects/Group.cs')
| -rw-r--r-- | src/GraphicObjects/Group.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/GraphicObjects/Group.cs b/src/GraphicObjects/Group.cs index e2d64c89..41294231 100644 --- a/src/GraphicObjects/Group.cs +++ b/src/GraphicObjects/Group.cs @@ -215,17 +215,17 @@ namespace go #region Mouse handling
- public override void onMouseMove (object sender, OpenTK.Input.MouseMoveEventArgs e)
+ internal override void checkHoverWidget (OpenTK.Input.MouseMoveEventArgs e)
{
foreach (GraphicObject g in Children)
- {
+ {
if (g.MouseIsIn(e.Position))
- {
- g.onMouseMove (sender, e);
- return;
- }
- }
- base.onMouseMove (sender, e);
+ {
+ g.checkHoverWidget (e);
+ return;
+ }
+ }
+ base.checkHoverWidget (e);
}
#endregion
|