From 46965705ca33de8365969ff85f26a9f5a7271309 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Thu, 11 Jul 2013 19:46:59 +0000 Subject: [PATCH] adapting to new x wheel behavior, see #15269 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/scrlwing.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/generic/scrlwing.cpp b/src/generic/scrlwing.cpp index 921c5961ca..2135db54f4 100644 --- a/src/generic/scrlwing.cpp +++ b/src/generic/scrlwing.cpp @@ -1018,6 +1018,9 @@ void wxScrollHelperBase::HandleOnMouseWheel(wxMouseEvent& event) newEvent.SetOrientation( event.GetWheelAxis() == 0 ? wxVERTICAL : wxHORIZONTAL); newEvent.SetEventObject(m_win); + if ( event.GetWheelAxis() == wxMOUSE_WHEEL_HORIZONTAL ) + lines = -lines; + if (event.IsPageScroll()) { if (lines > 0) -- 2.50.0