0000894: Invert mouse Zoom for CAD mouse model

This commit is contained in:
wmayer 2012-11-29 14:35:42 +01:00
parent 98c2c18c84
commit 6d9539fb42

View File

@ -724,7 +724,10 @@ void NavigationStyle::zoomByCursor(const SbVec2f & thispos, const SbVec2f & prev
{
// There is no "geometrically correct" value, 20 just seems to give
// about the right "feel".
zoom(viewer->getCamera(), (thispos[1] - prevpos[1]) * 10.0f/*20.0f*/);
float value = (thispos[1] - prevpos[1]) * 10.0f/*20.0f*/;
if (this->invertZoom)
value = -value;
zoom(viewer->getCamera(), value);
}
void NavigationStyle::zoomIn()