Fixed issue where the client continued to reset the mouse position after losing focus
This commit is contained in:
parent
fb65c410e8
commit
655a0d71e8
@ -246,7 +246,7 @@ namespace TrueCraft.Client
|
|||||||
|
|
||||||
private void OnMouseComponentMove(object sender, MouseMoveEventArgs e)
|
private void OnMouseComponentMove(object sender, MouseMoveEventArgs e)
|
||||||
{
|
{
|
||||||
if (MouseCaptured)
|
if (MouseCaptured && IsActive)
|
||||||
{
|
{
|
||||||
var centerX = GraphicsDevice.Viewport.Width / 2;
|
var centerX = GraphicsDevice.Viewport.Width / 2;
|
||||||
var centerY = GraphicsDevice.Viewport.Height / 2;
|
var centerY = GraphicsDevice.Viewport.Height / 2;
|
||||||
|
Reference in New Issue
Block a user