From: ThorstenB Date: Thu, 18 Aug 2011 19:32:24 +0000 (+0200) Subject: #403: 2D horizontal scrolling on Mac OS X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ae6623655c807e778315f478c8bfb60e44d5da51;p=flightgear.git #403: 2D horizontal scrolling on Mac OS Ignore events with X-axis scrolling only (getScrollingDeltaY() == 0). Thanks to Tatsuhiro Nishioka. --- diff --git a/src/Main/FGEventHandler.cxx b/src/Main/FGEventHandler.cxx index 91d830e6d..e43f4b8ab 100644 --- a/src/Main/FGEventHandler.cxx +++ b/src/Main/FGEventHandler.cxx @@ -208,7 +208,7 @@ bool FGEventHandler::handle(const osgGA::GUIEventAdapter& ea, if (ea.getScrollingMotion() == osgGA::GUIEventAdapter::SCROLL_2D) { if (ea.getScrollingDeltaY() > 0) button = 3; - else + else if (ea.getScrollingDeltaY() < 0) button = 4; } else if (ea.getScrollingMotion() == osgGA::GUIEventAdapter::SCROLL_UP) button = 3;