]> git.saurik.com Git - wxWidgets.git/commitdiff
Bug fix for [ 1059381 ] Mouse wheel does not work in listctrl with gtk2
authorRobin Dunn <robin@alldunn.com>
Fri, 14 Jan 2005 15:59:21 +0000 (15:59 +0000)
committerRobin Dunn <robin@alldunn.com>
Fri, 14 Jan 2005 15:59:21 +0000 (15:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/listctrl.cpp

index 40acbcc1a756f4712443cf34753ddc8849e14bd4..1d9eda16d99584bba301a860b91b2151be9619c9 100644 (file)
@@ -2874,6 +2874,15 @@ void wxListMainWindow::OnMouse( wxMouseEvent &event )
     if ( GetParent()->GetEventHandler()->ProcessEvent( event) )
         return;
 
+#if wxUSE_MOUSEWHEEL
+    if (event.GetEventType() == wxEVT_MOUSEWHEEL)
+    {
+        // let the base handle mouse wheel events.
+        event.Skip();
+        return;
+    }
+#endif
+    
     if ( !HasCurrent() || IsEmpty() )
         return;