From c180fd77f4e73bba44a264f80dee83664b4ff6df Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 30 Mar 2011 14:16:07 +0000 Subject: [PATCH] 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 --- src/aui/floatpane.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/aui/floatpane.cpp b/src/aui/floatpane.cpp index 99e80894e3..9fafc9976d 100644 --- a/src/aui/floatpane.cpp +++ b/src/aui/floatpane.cpp @@ -214,6 +214,15 @@ void wxAuiFloatingFrame::OnMoveEvent(wxMoveEvent& event) m_last3_rect = m_last2_rect; m_last2_rect = m_last_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; } -- 2.47.2