#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:
parent
8e5e8fc14f
commit
ae6623655c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue