]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/splitter.cpp
pc 2 mac conversion for file operations
[wxWidgets.git] / src / generic / splitter.cpp
index 98b0c13ce35d9d438a0b3e237fd2e3bd43f6e75a..01e143d8b8a928c1bda70b1bd3957149cbf990c6 100644 (file)
@@ -281,13 +281,17 @@ void wxSplitterWindow::OnMouseEvent(wxMouseEvent& event)
 
         SizeWindows();
     }  // left up && dragging
-    else if (event.Moving() && !event.Dragging())
+    else if ((event.Moving() || event.Leaving() || event.Entering()) && (m_dragMode == wxSPLIT_DRAG_NONE))
     {
         // Just change the cursor as required
-        if ( SashHitTest(x, y) )
+        if ( !event.Leaving() && SashHitTest(x, y) )
+        {
             SetResizeCursor();
+        }
         else
+        {
             SetCursor(* wxSTANDARD_CURSOR);
+        }
     }
     else if (event.Dragging() && (m_dragMode == wxSPLIT_DRAG_DRAGGING))
     {