10-26-2009, 09:51 PM
If I animate a scene camera's distance property it causes the mouse wheel to no longer function.
DoubleAnimation daDistance = new DoubleAnimation();
daDistance.From = sceneCamera.Distance;
daDistance.To = ZoomDistance;
daDistance.Duration = new System.Windows.Duration(TimeSpan.FromSeconds(2.0))
sceneCamera.BeginAnimation(Ab3d.Cameras.SceneCamera.DistanceProperty, daDistance, HandoffBehavior.Compose);
I have a MouseCameraController tied to the same viewport. After the animation is over I can no longer use the mouse wheel to zoom in and out, yet the rotate still works.
Any ideas?
DoubleAnimation daDistance = new DoubleAnimation();
daDistance.From = sceneCamera.Distance;
daDistance.To = ZoomDistance;
daDistance.Duration = new System.Windows.Duration(TimeSpan.FromSeconds(2.0))
sceneCamera.BeginAnimation(Ab3d.Cameras.SceneCamera.DistanceProperty, daDistance, HandoffBehavior.Compose);
I have a MouseCameraController tied to the same viewport. After the animation is over I can no longer use the mouse wheel to zoom in and out, yet the rotate still works.
Any ideas?