mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +00:00
NSViewComponentPeer: Only forward a mouse move event if the view is not occluded by a child view
This commit is contained in:
parent
fcf62ab105
commit
b108fe26c3
1 changed files with 4 additions and 1 deletions
|
|
@ -754,7 +754,10 @@ public:
|
|||
NSPoint screenPos = [[ev window] convertRectToScreen: NSMakeRect (windowPos.x, windowPos.y, 1.0f, 1.0f)].origin;
|
||||
|
||||
if (isWindowAtPoint ([ev window], screenPos))
|
||||
sendMouseEvent (ev);
|
||||
{
|
||||
if (contains (getMousePos (ev, view).roundToInt(), false))
|
||||
sendMouseEvent (ev);
|
||||
}
|
||||
else
|
||||
// moved into another window which overlaps this one, so trigger an exit
|
||||
handleMouseEvent (MouseInputSource::InputSourceType::mouse, MouseInputSource::offscreenMousePos, ModifierKeys::currentModifiers,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue