Skip to content

Commit cc7638f

Browse files
Fix on mouse scroll wheel usage
1 parent e6c08a2 commit cc7638f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/RunActivity/Viewer3D/Viewer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1378,7 +1378,7 @@ void HandleUserInput(ElapsedTime elapsedTime)
13781378
if (mouseRenderer.IsMouseWithin())
13791379
{
13801380
var UserCommandControlTypes = (PlayerLocomotiveViewer as MSTSLocomotiveViewer).UserCommandControlTypes;
1381-
if (UserCommandControlTypes.ContainsKey(controlRenderer.Control.ControlType.Type))
1381+
if (UserCommandControlTypes.ContainsKey(controlRenderer.Control.ControlType.Type) && UserInput.IsMouseWheelChanged)
13821382
{
13831383
continue;
13841384
}

0 commit comments

Comments
 (0)