}
SizeWindows();
- m_needUpdating = FALSE;
} // left up && dragging
else if (event.Moving() && !event.Dragging())
{
SetCursor(* wxSTANDARD_CURSOR);
}
#endif // __WXGTK__
-
- m_needUpdating = FALSE;
}
else if (event.Dragging() && (m_dragMode == wxSPLIT_DRAG_DRAGGING))
{
return;
}
}
+
+ if (new_sash_position == m_sashPosition)
+ return;
// Erase old tracker
if ((GetWindowStyleFlag() & wxSP_LIVE_UPDATE) == 0)
else
y = new_sash_position;
- if (new_sash_position != -1)
- {
- // Only modify if permitted
- m_oldX = x;
- m_oldY = y;
- }
+ // Remember old positions
+ m_oldX = x;
+ m_oldY = y;
#ifdef __WXMSW__
// As we captured the mouse, we may get the mouse events from outside
if ( m_borderSize > 0 )
DrawBorders(dc);
DrawSash(dc);
+
+ m_needUpdating = FALSE;
}
// Set pane for unsplit window