mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +00:00
OpenGL: Fix mouse-move handling for OpenGL views
Since b108fe26c3, JUCE NSViews have
ignored mouse movements for child views. However, this causes issues for
OpenGL views, which still expect to receive mouse input via the parent
view. This fix makes the inner OpenGL view effectively invisible to the
mouse, so all mouse events are handled by the owning JUCE view.
This commit is contained in:
parent
0aafcdbb4c
commit
29e6bee01f
1 changed files with 5 additions and 0 deletions
|
|
@ -328,6 +328,11 @@ public:
|
|||
return [[(NSOpenGLView*) self superview] accessibilityHitTest: p];
|
||||
});
|
||||
|
||||
addMethod (@selector (hitTest:), [] (id, SEL, NSPoint) -> NSView*
|
||||
{
|
||||
return nil;
|
||||
});
|
||||
|
||||
registerClass();
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue