1
0
Fork 0

#403: 2D horizontal scrolling on Mac OS

Ignore events with X-axis scrolling only (getScrollingDeltaY() == 0).
Thanks to Tatsuhiro Nishioka.
This commit is contained in:
ThorstenB 2011-08-18 21:32:24 +02:00
parent 8e5e8fc14f
commit ae6623655c

View file

@ -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;