From de9ce8a3c092eca850f98999652fb9293ca00c7c Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 24 Jul 2009 15:04:46 +0000 Subject: [PATCH] From Cory Riddell, "The spherical manipulator uses a middle drag event for panning. It was panning for left-right drags, but was zooming for up-down drags. I changed it to pan both directions as I believe that is the correct behaviour. If the original combination pan-zoom behaviour was intentional, please let me know." --- src/osgGA/SphericalManipulator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgGA/SphericalManipulator.cpp b/src/osgGA/SphericalManipulator.cpp index 2cd882d60..96363f217 100644 --- a/src/osgGA/SphericalManipulator.cpp +++ b/src/osgGA/SphericalManipulator.cpp @@ -363,7 +363,7 @@ bool SphericalManipulator::calcMovement() osg::Matrix rotation_matrix; rotation_matrix=osg::Matrixd::rotate(_elevation,-1,0,0)*osg::Matrixd::rotate(PI_2+_heading,0,0,1); - osg::Vec3 dv(dx*scale,dy*scale,0); + osg::Vec3 dv(dx*scale,0,dy*scale); _center += dv*rotation_matrix; return true;