Gui: avoid code duplication in NavigationStyle and remove superfluous doZoom_wheel method

This commit is contained in:
wmayer
2020-08-22 18:44:47 +02:00
parent a41a5042ae
commit c14190b918
5 changed files with 16 additions and 35 deletions

View File

@@ -157,11 +157,11 @@ SbBool TouchpadNavigationStyle::processSoEvent(const SoEvent * const ev)
this->setViewing(true);
break;
case SoKeyboardEvent::PAGE_UP:
doZoom(viewer->getSoRenderManager()->getCamera(), true, posn);
doZoom(viewer->getSoRenderManager()->getCamera(), getDelta(), posn);
processed = true;
break;
case SoKeyboardEvent::PAGE_DOWN:
doZoom(viewer->getSoRenderManager()->getCamera(), false, posn);
doZoom(viewer->getSoRenderManager()->getCamera(), -getDelta(), posn);
processed = true;
break;
default: