From 8dcfd2f963134802bc1585e1a9f7737238d9e893 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 14 Aug 2002 15:10:30 +0000 Subject: [PATCH] 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 --- src/generic/splitter.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.50.0