From: Thomas Geymayer Date: Sun, 10 Mar 2013 22:10:26 +0000 (+0100) Subject: slider - fix shifted check while dragging X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0dcb64dca32d40e0c57463317823cf13ab76a335;p=simgear.git slider - fix shifted check while dragging --- diff --git a/simgear/scene/model/SGPickAnimation.cxx b/simgear/scene/model/SGPickAnimation.cxx index a2bad446..abdeec82 100644 --- a/simgear/scene/model/SGPickAnimation.cxx +++ b/simgear/scene/model/SGPickAnimation.cxx @@ -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; } }