Fix wrong scaling of mouse input