First release mouse, then emit event.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
913fffd75a
commit
f0bc6afbbd
@ -3144,6 +3144,8 @@ void wxGenericTreeCtrl::OnMouse( wxMouseEvent &event )
|
||||
}
|
||||
else if ( (event.LeftUp() || event.RightUp()) && m_isDragging )
|
||||
{
|
||||
ReleaseMouse();
|
||||
|
||||
// erase the highlighting
|
||||
DrawDropEffect(m_dropTarget);
|
||||
|
||||
@ -3166,8 +3168,6 @@ void wxGenericTreeCtrl::OnMouse( wxMouseEvent &event )
|
||||
m_isDragging = false;
|
||||
m_dropTarget = (wxGenericTreeItem *)NULL;
|
||||
|
||||
ReleaseMouse();
|
||||
|
||||
SetCursor(m_oldCursor);
|
||||
|
||||
#if defined( __WXMSW__ ) || defined(__WXMAC__)
|
||||
|
Loading…
Reference in New Issue
Block a user