]> git.mxchange.org Git - simgear.git/commitdiff
slider - fix shifted check while dragging
authorThomas Geymayer <tomgey@gmail.com>
Sun, 10 Mar 2013 22:10:26 +0000 (23:10 +0100)
committerThomas Geymayer <tomgey@gmail.com>
Sun, 10 Mar 2013 22:10:26 +0000 (23:10 +0100)
simgear/scene/model/SGPickAnimation.cxx

index a2bad446addca9cd78a16aef8e4efe31b793a512..abdeec8229a4e515fc6c67784527ef73bf8e9de8 100644 (file)
@@ -538,7 +538,7 @@ public:
         if (fabs(delta) >= 1.0) {
             // determine direction from sign of delta
             Direction dir = (delta > 0.0) ? DIRECTION_INCREASE : DIRECTION_DECREASE;
-            fire(ea->getModKeyMask(), dir);
+            fire(ea->getModKeyMask() & osgGA::GUIEventAdapter::MODKEY_SHIFT, dir);
             _lastFirePos = _mousePos;
         }
     }