]> git.saurik.com Git - wxWidgets.git/commitdiff
fix missing mouse-up events (eg when track control was called, which is consuming...
authorStefan Csomor <csomor@advancedconcepts.ch>
Fri, 25 Jun 2004 08:25:34 +0000 (08:25 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Fri, 25 Jun 2004 08:25:34 +0000 (08:25 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28019 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/toplevel.cpp

index afeecbafc44a172c44e984fc7274618c583b15dd..1b89824fa736e6e8d931ef07aacd49a88f25c7b7 100644 (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 )