forwarding mouse moved events to the view under the mouse, not the firstResponder
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70530 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
9d38429920
commit
a7ba5d1efb
@ -126,6 +126,20 @@ bool shouldHandleSelector(SEL selector)
|
||||
((wxWidgetCocoaImpl*)cw->GetPeer())->DoHandleMouseEvent( event);
|
||||
handled = true;
|
||||
}
|
||||
else if ( [event type] == NSMouseMoved )
|
||||
{
|
||||
NSPoint nsPoint = [event locationInWindow];
|
||||
if ( [event window] != nil )
|
||||
nsPoint = [[event window] convertBaseToScreen:nsPoint];
|
||||
|
||||
wxPoint pt = wxFromNSPoint(NULL, nsPoint);
|
||||
wxWindow* mw = ::wxFindWindowAtPoint(pt);
|
||||
if ( mw )
|
||||
{
|
||||
((wxWidgetCocoaImpl*)mw->GetPeer())->DoHandleMouseEvent( event);
|
||||
handled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return handled;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user