Skip double size events.

Skip movements of floating pane when moving fast.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40760 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2006-08-22 22:47:50 +00:00
parent e65fbef69d
commit 0ae3bace9b
2 changed files with 21 additions and 0 deletions

View File

@@ -134,6 +134,14 @@ void wxFloatingPane::OnMoveEvent(wxMoveEvent& event)
return;
}
// skip if moving fast
if ((abs(win_rect.x - m_last_rect.x) > 1) ||
(abs(win_rect.y - m_last_rect.y) > 1))
{
m_last_rect = win_rect;
return;
}
// prevent frame redocking during resize
if (m_last_rect.GetSize() != win_rect.GetSize())
{