only on mouse-down
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28346 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -557,7 +557,7 @@ pascal OSStatus wxMacTopLevelMouseEventHandler( EventHandlerCallRef handler , Ev
|
||||
// for some reason returning eventNotHandledErr does not lead to the correct behaviour
|
||||
// so we try sending them the correct control directly
|
||||
wxTopLevelWindowMac* toplevelWindow = (wxTopLevelWindowMac*) data ;
|
||||
if ( toplevelWindow && control )
|
||||
if ( cEvent.GetKind() == kEventMouseDown && toplevelWindow && control )
|
||||
{
|
||||
EventModifiers modifiers = cEvent.GetParameter<EventModifiers>(kEventParamKeyModifiers, typeUInt32) ;
|
||||
Point clickLocation = windowMouseLocation ;
|
||||
|
Reference in New Issue
Block a user