X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=vv%2FvvSlicerManagerCommand.cxx;h=b7c2b4669fff27f2a2bd4888ecf501b09d88b4d1;hb=bb4e897df61593efc572a27c1312e87bb1f13c6e;hp=068de40927ed7a5611d013ec21e945ed1a16ce06;hpb=0b04af7278ad344a167c4e8d99e6e67c535f0d95;p=clitk.git diff --git a/vv/vvSlicerManagerCommand.cxx b/vv/vvSlicerManagerCommand.cxx index 068de40..b7c2b46 100644 --- a/vv/vvSlicerManagerCommand.cxx +++ b/vv/vvSlicerManagerCommand.cxx @@ -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;