Fixed issue where the client continued to reset the mouse position after losing focus

This commit is contained in:
William Moorehouse 2015-06-21 16:26:09 -04:00
parent fb65c410e8
commit 655a0d71e8

View File

@ -246,7 +246,7 @@ namespace TrueCraft.Client
private void OnMouseComponentMove(object sender, MouseMoveEventArgs e)
{
if (MouseCaptured)
if (MouseCaptured && IsActive)
{
var centerX = GraphicsDevice.Viewport.Width / 2;
var centerY = GraphicsDevice.Viewport.Height / 2;