From 0dcb64dca32d40e0c57463317823cf13ab76a335 Mon Sep 17 00:00:00 2001 From: Thomas Geymayer Date: Sun, 10 Mar 2013 23:10:26 +0100 Subject: [PATCH] slider - fix shifted check while dragging --- simgear/scene/model/SGPickAnimation.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.39.5