]> git.saurik.com Git - wxWidgets.git/commitdiff
small fix to reduce flicker slightly while dragging the sash
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 14 Aug 2002 15:10:30 +0000 (15:10 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 14 Aug 2002 15:10:30 +0000 (15:10 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16507 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/splitter.cpp

index 5e293514bdd3b96e236bdf6fd24bc98ff39a10f0..9918c9f70437fdf45753e01605ebb2ca8707e0fd 100644 (file)
@@ -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);