File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Source/RunActivity/Viewer3D Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -270,7 +270,7 @@ protected void ZoomByMouseWheel(float speed)
270270 {
271271 // Will not zoom-in-out when help windows is up.
272272 // TODO: Property input processing through WindowManager.
273- if ( UserInput . IsMouseWheelChanged && ! UserInput . IsDown ( UserCommand . GameSwitchWithMouse ) && ! Viewer . HelpWindow . Visible )
273+ if ( UserInput . IsMouseWheelChanged && ( ! UserInput . IsDown ( UserCommand . GameSwitchWithMouse ) || ! ( this is ThreeDimCabCamera ) ) && ! Viewer . HelpWindow . Visible )
274274 {
275275 var fieldOfView = MathHelper . Clamp ( FieldOfView - speed * UserInput . MouseWheelChange / 10 , 1 , 135 ) ;
276276 new FieldOfViewCommand ( Viewer . Log , fieldOfView ) ;
Original file line number Diff line number Diff line change @@ -2340,7 +2340,7 @@ public virtual int GetDrawIndex()
23402340 /// </summary>
23412341 float NormalizedMouseMovement ( )
23422342 {
2343- var mouseWheelChange = UserInput . IsDown ( UserCommand . GameSwitchWithMouse ) ? UserInput . MouseWheelChange : 0 ;
2343+ var mouseWheelChange = ( UserInput . IsDown ( UserCommand . GameSwitchWithMouse ) ? UserInput . MouseWheelChange : 0 ) / 5 ;
23442344 return ( ControlDiscrete . Orientation > 0
23452345 ? ( float ) ( UserInput . MouseMoveY + mouseWheelChange ) / ( float ) Control . Height
23462346 : ( float ) ( UserInput . MouseMoveX + mouseWheelChange ) / ( float ) Control . Width )
You can’t perform that action at this time.
0 commit comments