aboutsummaryrefslogtreecommitdiffstatsci
path: root/Tests/CrowWindow.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/CrowWindow.cs')
-rw-r--r--Tests/CrowWindow.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/Tests/CrowWindow.cs b/Tests/CrowWindow.cs
index 1be9bb45..862a81b2 100644
--- a/Tests/CrowWindow.cs
+++ b/Tests/CrowWindow.cs
@@ -350,9 +350,11 @@ namespace Crow
return;
}
}
- } if (ifaceControl [focusedIdx].ProcessMouseMove (otk_e.X, otk_e.Y))
- return;
-
+ }
+ if (focusedIdx >= 0) {
+ if (ifaceControl [focusedIdx].ProcessMouseMove (otk_e.X, otk_e.Y))
+ return;
+ }
CrowMouseMove.Raise (sender, otk_e);
}
protected virtual void GL_Mouse_ButtonUp(object sender, OpenTK.Input.MouseButtonEventArgs otk_e)