1
0
Fork 0
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:
reuk 2024-12-19 22:58:16 +00:00
parent 0aafcdbb4c
commit 29e6bee01f
No known key found for this signature in database

View file

@ -328,6 +328,11 @@ public:
return [[(NSOpenGLView*) self superview] accessibilityHitTest: p];
});
addMethod (@selector (hitTest:), [] (id, SEL, NSPoint) -> NSView*
{
return nil;
});
registerClass();
}
};