git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28019
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if ( cEvent.GetKind() == kEventMouseDown )
lastButton = button ;
if ( cEvent.GetKind() == kEventMouseDown )
lastButton = button ;
+
+ if ( button == 0 )
+ lastButton = 0 ;
else if ( lastButton )
button = lastButton ;
else if ( lastButton )
button = lastButton ;
else
wxevent.SetEventType(wxEVT_MOTION ) ;
}
else
wxevent.SetEventType(wxEVT_MOTION ) ;
}
- if ( cEvent.GetKind() == kEventMouseUp )
- lastButton = 0 ;
}
ControlRef wxMacFindSubControl( Point location , ControlRef superControl , ControlPartCode *outPart )
}
ControlRef wxMacFindSubControl( Point location , ControlRef superControl , ControlPartCode *outPart )