From: Vadim Zeitlin Date: Wed, 14 Aug 2002 15:10:30 +0000 (+0000) Subject: small fix to reduce flicker slightly while dragging the sash X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8dcfd2f963134802bc1585e1a9f7737238d9e893 small fix to reduce flicker slightly while dragging the sash git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16507 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/splitter.cpp b/src/generic/splitter.cpp index 5e293514bd..9918c9f704 100644 --- a/src/generic/splitter.cpp +++ b/src/generic/splitter.cpp @@ -294,6 +294,11 @@ void wxSplitterWindow::OnMouseEvent(wxMouseEvent& event) #endif // __WXMSW__ int diff = m_splitMode == wxSPLIT_VERTICAL ? x - m_oldX : y - m_oldY; + if ( !diff ) + { + // nothing to do, mouse didn't really move far enough + return; + } int posSashOld = isLive ? m_sashPosition : m_sashPositionCurrent; int posSashNew = OnSashPositionChanging(posSashOld + diff);