Always update internally stored AUI floating frame position.

Update the internally stored position of a floating AUI frame even if the user
is dragging it too fast to update its position on screen. This prevents the
frame from snapping back to the initial position when movement is over.

Closes #13014.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2011-03-30 14:16:07 +00:00
parent 01871bf642
commit c180fd77f4

View File

@@ -214,6 +214,15 @@ void wxAuiFloatingFrame::OnMoveEvent(wxMoveEvent& event)
m_last3_rect = m_last2_rect; m_last3_rect = m_last2_rect;
m_last2_rect = m_last_rect; m_last2_rect = m_last_rect;
m_last_rect = win_rect; m_last_rect = win_rect;
// However still update the internally stored position to avoid
// snapping back to the old one later.
if (m_owner_mgr)
{
m_owner_mgr->GetPane(m_pane_window).
floating_pos = win_rect.GetPosition();
}
return; return;
} }