Improved mouse delta handling.