Cleanup and fix mouse scaling.