From 185f6036f8008e3b336c0bdffdfb3c24811c2ca5 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 14 Jan 2005 15:59:21 +0000 Subject: [PATCH] Bug fix for [ 1059381 ] Mouse wheel does not work in listctrl with gtk2 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/listctrl.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 40acbcc1a7..1d9eda16d9 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -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;