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
This commit is contained in:
@@ -294,6 +294,11 @@ void wxSplitterWindow::OnMouseEvent(wxMouseEvent& event)
|
|||||||
#endif // __WXMSW__
|
#endif // __WXMSW__
|
||||||
|
|
||||||
int diff = m_splitMode == wxSPLIT_VERTICAL ? x - m_oldX : y - m_oldY;
|
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 posSashOld = isLive ? m_sashPosition : m_sashPositionCurrent;
|
||||||
int posSashNew = OnSashPositionChanging(posSashOld + diff);
|
int posSashNew = OnSashPositionChanging(posSashOld + diff);
|
||||||
|
Reference in New Issue
Block a user