Hi there, I found a bug on 2.4.0 branch related to mouse scroll up/down. # I posted this issue to FlightGear Bug Tracker but I want to post this here since code fix is coming soon.
Most of recent Macs have trackpad or magic mouse. The scrolling action on these devices generates SCROLL_2D event instead of SCROLL_UP/DOWN event. (FYI, SCROLL_UP or SCROLL_DOWN event is generated on unix and windows.) FGEventHandler.cxx handles SCROLL_UP/DOWN event as follows: if (ea.getScrollingMotion() == osgGA::GUIEventAdapter::SCROLL_UP) button = 3; else button = 4; Since this code implicitly handles SCROLL_2D as button 4 (means SCROLL_DOWN button), both scrolling up and down on Mac unexpectedly converted to scroll down button. As a result, scrolling up and down is always treated as scroll DOWN! (or zoom out on MAP) Patch for this is available from: http://code.google.com/p/flightgear-bugs/issues/detail?id=403 I already tested this on Mac and works fine with trackpad. please try this on unix and see if it won't affect unix/windows. I believe this doesn't affect the behavior on other platforms since osgViewer doesn't generate SCROLL_2D on unix and Windows. Tat p.s. btw, is there any button assigned for SCROLL_LEFT / RIGHT? --- Tatsuhiro Nishioka http://macflightgear.sourceforge.net/ ------------------------------------------------------------------------------ FREE DOWNLOAD - uberSVN with Social Coding for Subversion. Subversion made easy with a complete admin console. Easy to use, easy to manage, easy to install, easy to extend. Get a Free download of the new open ALM Subversion platform now. http://p.sf.net/sfu/wandisco-dev2dev _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel