propagate scroll wheel events to parent, fixes #15187
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74086 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
cd15bcaf50
commit
b0cb918598
@ -1190,7 +1190,8 @@ void wxWidgetCocoaImpl::mouseEvent(WX_NSEvent event, WXWidget slf, void *_cmd)
|
||||
if ( !DoHandleMouseEvent(event) )
|
||||
{
|
||||
// for plain NSView mouse events would propagate to parents otherwise
|
||||
if (!IsUserPane())
|
||||
// scrollwheel events have to be propagated if not handled in all cases
|
||||
if (!IsUserPane() || [event type] == NSScrollWheel )
|
||||
{
|
||||
wxOSX_EventHandlerPtr superimpl = (wxOSX_EventHandlerPtr) [[slf superclass] instanceMethodForSelector:(SEL)_cmd];
|
||||
superimpl(slf, (SEL)_cmd, event);
|
||||
|
Loading…
Reference in New Issue
Block a user