Fixed bug where translation of the mouse was off when screen is resized