Small fix for splitterwindow (no longer wrong cursor in
nested scrolled window). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -276,10 +276,14 @@ void wxSplitterWindow::OnMouseEvent(wxMouseEvent& event)
|
|||||||
else if ((event.Moving() || event.Leaving() || event.Entering()) && (m_dragMode == wxSPLIT_DRAG_NONE))
|
else if ((event.Moving() || event.Leaving() || event.Entering()) && (m_dragMode == wxSPLIT_DRAG_NONE))
|
||||||
{
|
{
|
||||||
// Just change the cursor as required
|
// Just change the cursor as required
|
||||||
if ( SashHitTest(x, y) )
|
if ( !event.Leaving() && SashHitTest(x, y) )
|
||||||
|
{
|
||||||
SetResizeCursor();
|
SetResizeCursor();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
SetCursor(* wxSTANDARD_CURSOR);
|
SetCursor(* wxSTANDARD_CURSOR);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (event.Dragging() && (m_dragMode == wxSPLIT_DRAG_DRAGGING))
|
else if (event.Dragging() && (m_dragMode == wxSPLIT_DRAG_DRAGGING))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user