fix missing mouse-up events (eg when track control was called, which is consuming the mouse-up event)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28019 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2004-06-25 08:25:34 +00:00
parent 88db1d64cb
commit 4e4e6dce5b

View File

@ -283,6 +283,9 @@ static void SetupMouseEvent( wxMouseEvent &wxevent , wxMacCarbonEvent &cEvent )
if ( cEvent.GetKind() == kEventMouseDown )
lastButton = button ;
if ( button == 0 )
lastButton = 0 ;
else if ( lastButton )
button = lastButton ;
@ -338,8 +341,6 @@ static void SetupMouseEvent( wxMouseEvent &wxevent , wxMacCarbonEvent &cEvent )
else
wxevent.SetEventType(wxEVT_MOTION ) ;
}
if ( cEvent.GetKind() == kEventMouseUp )
lastButton = 0 ;
}
ControlRef wxMacFindSubControl( Point location , ControlRef superControl , ControlPartCode *outPart )