X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dc2513650dce762388f5469360cbb0ac84dcc2d0..e733c4ce1e24cf7e4b0b0d8362fc59aaa7a7641c:/src/generic/vscroll.cpp diff --git a/src/generic/vscroll.cpp b/src/generic/vscroll.cpp index 0048bd75b0..efbef67e33 100644 --- a/src/generic/vscroll.cpp +++ b/src/generic/vscroll.cpp @@ -137,11 +137,24 @@ bool wxVarScrollHelperEvtHandler::ProcessEvent(wxEvent& event) } } #if wxUSE_MOUSEWHEEL + // Use GTK's own scroll wheel handling in GtkScrolledWindow +#ifndef __WXGTK20__ else if ( evType == wxEVT_MOUSEWHEEL ) { m_scrollHelper->HandleOnMouseWheel((wxMouseEvent &)event); } +#endif #endif // wxUSE_MOUSEWHEEL + else if ( evType == wxEVT_CHAR && + (m_scrollHelper->GetOrientation() == wxVERTICAL) ) + { + m_scrollHelper->HandleOnChar((wxKeyEvent &)event); + if ( !event.GetSkipped() ) + { + processed = true; + wasSkipped = false; + } + } event.Skip(wasSkipped);