diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2019-03-29 17:11:58 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2019-03-29 17:11:58 +0100 |
| commit | 616e26d066c2986e02889fa1aa95f69c9334f86f (patch) | |
| tree | 6e28359fee135219b7c77543f8a0ac455cf0facf /Tests/CrowWindow.cs | |
| parent | f1531e562b4ecd9d568a28c2fffe7ffed06c728a (diff) | |
Diffstat (limited to 'Tests/CrowWindow.cs')
| -rw-r--r-- | Tests/CrowWindow.cs | 8 |
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) |