File tree 2 files changed +2
-2
lines changed
Source/RunActivity/Viewer3D
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)
270
270
{
271
271
// Will not zoom-in-out when help windows is up.
272
272
// 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 )
274
274
{
275
275
var fieldOfView = MathHelper . Clamp ( FieldOfView - speed * UserInput . MouseWheelChange / 10 , 1 , 135 ) ;
276
276
new FieldOfViewCommand ( Viewer . Log , fieldOfView ) ;
Original file line number Diff line number Diff line change @@ -2340,7 +2340,7 @@ public virtual int GetDrawIndex()
2340
2340
/// </summary>
2341
2341
float NormalizedMouseMovement ( )
2342
2342
{
2343
- var mouseWheelChange = UserInput . IsDown ( UserCommand . GameSwitchWithMouse ) ? UserInput . MouseWheelChange : 0 ;
2343
+ var mouseWheelChange = ( UserInput . IsDown ( UserCommand . GameSwitchWithMouse ) ? UserInput . MouseWheelChange : 0 ) / 5 ;
2344
2344
return ( ControlDiscrete . Orientation > 0
2345
2345
? ( float ) ( UserInput . MouseMoveY + mouseWheelChange ) / ( float ) Control . Height
2346
2346
: ( float ) ( UserInput . MouseMoveX + mouseWheelChange ) / ( float ) Control . Width )
You can’t perform that action at this time.
0 commit comments