Added support for scaling widgets via the scoll wheel.
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14431 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
@@ -128,7 +128,7 @@ void Widget::updateFocus(osg::NodeVisitor& nv)
|
||||
}
|
||||
}
|
||||
|
||||
if (numButtonsPressed!=0)
|
||||
if (_hasEventFocus && (ea->getEventType()==osgGA::GUIEventAdapter::PUSH || ea->getEventType()==osgGA::GUIEventAdapter::SCROLL) )
|
||||
{
|
||||
osgViewer::View* view = dynamic_cast<osgViewer::View*>(aa);
|
||||
if (view && view->getCameraManipulator())
|
||||
|
||||
Reference in New Issue
Block a user