]> Creatis software - clitk.git/commitdiff
Fixed linked navigation with mouse wheel
authorsrit <srit>
Wed, 23 Jun 2010 17:10:36 +0000 (17:10 +0000)
committersrit <srit>
Wed, 23 Jun 2010 17:10:36 +0000 (17:10 +0000)
vv/vvSlicerManagerCommand.cxx

index 068de40927ed7a5611d013ec21e945ed1a16ce06..b7c2b4669fff27f2a2bd4888ecf501b09d88b4d1 100644 (file)
@@ -316,6 +316,7 @@ void vvSlicerManagerCommand::Execute(vtkObject *caller,
       } else if (event == vtkCommand::MouseWheelForwardEvent && isi->GetInteractor()->GetControlKey()) {
         double factor = 2;
         this->Dolly(pow((double)1.1, factor),isi->GetInteractor());
+        Execute(caller, vtkCommand::EndInteractionEvent, NULL);
       } else if (event == vtkCommand::MouseWheelBackwardEvent && !isi->GetInteractor()->GetControlKey()) {
         this->SM->GetSlicer(VisibleInWindow)->SetSlice(this->SM->GetSlicer(VisibleInWindow)->GetSlice()-1);
         this->SM->UpdateSlice(VisibleInWindow);
@@ -323,6 +324,7 @@ void vvSlicerManagerCommand::Execute(vtkObject *caller,
       } else if (event == vtkCommand::MouseWheelBackwardEvent && isi->GetInteractor()->GetControlKey()) {
         double factor = -2;
         this->Dolly(pow((double)1.1, factor),isi->GetInteractor());
+        Execute(caller, vtkCommand::EndInteractionEvent, NULL);
       }
       double xWorld=0;
       double yWorld=0;