From bb4e897df61593efc572a27c1312e87bb1f13c6e Mon Sep 17 00:00:00 2001 From: srit Date: Wed, 23 Jun 2010 17:10:36 +0000 Subject: [PATCH] Fixed linked navigation with mouse wheel --- vv/vvSlicerManagerCommand.cxx | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.47.1