File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Source/RunActivity/Viewer3D Expand file tree Collapse file tree 2 files changed +4
-3
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 && ! Viewer . HelpWindow . Visible && ! Viewer . RenderProcess . IsMouseVisible )
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,9 +2340,10 @@ public virtual int GetDrawIndex()
23402340 /// </summary>
23412341 float NormalizedMouseMovement ( )
23422342 {
2343+ var mouseWheelChange = ( UserInput . IsDown ( UserCommand . GameSwitchWithMouse ) ? UserInput . MouseWheelChange : 0 ) / 10 ;
23432344 return ( ControlDiscrete . Orientation > 0
2344- ? ( float ) ( UserInput . MouseMoveY + UserInput . MouseWheelChange ) / ( float ) Control . Height
2345- : ( float ) ( UserInput . MouseMoveX + UserInput . MouseWheelChange ) / ( float ) Control . Width )
2345+ ? ( float ) ( UserInput . MouseMoveY + mouseWheelChange ) / ( float ) Control . Height
2346+ : ( float ) ( UserInput . MouseMoveX + mouseWheelChange ) / ( float ) Control . Width )
23462347 * ( ControlDiscrete . Direction > 0 ? - 1 : 1 ) ;
23472348 }
23482349
You can’t perform that action at this time.
0 commit comments