From ae6623655c807e778315f478c8bfb60e44d5da51 Mon Sep 17 00:00:00 2001 From: ThorstenB Date: Thu, 18 Aug 2011 21:32:24 +0200 Subject: [PATCH] #403: 2D horizontal scrolling on Mac OS Ignore events with X-axis scrolling only (getScrollingDeltaY() == 0). Thanks to Tatsuhiro Nishioka. --- src/Main/FGEventHandler.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;