From e3d4bdd52b52768bc4ebde4ae207900f110078be Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 5 Oct 2013 15:05:41 +0000 Subject: [PATCH] Don't skip handled mouse wheel events in wxVScrolledWindow. Make the code consistent with wxScrolledWindow and fix the problem with wheel events always being skipped by wxVScrolledWindow which could result in processing them multiple times, e.g. for the window itself and its parent as it happened with wxPGChoiceEditor cells in wxPropertyGrid. Closes #15547. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74939 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/vscroll.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/generic/vscroll.cpp b/src/generic/vscroll.cpp index efbef67e33..10afddad01 100644 --- a/src/generic/vscroll.cpp +++ b/src/generic/vscroll.cpp @@ -142,6 +142,7 @@ bool wxVarScrollHelperEvtHandler::ProcessEvent(wxEvent& event) else if ( evType == wxEVT_MOUSEWHEEL ) { m_scrollHelper->HandleOnMouseWheel((wxMouseEvent &)event); + return true; } #endif #endif // wxUSE_MOUSEWHEEL