Enhanced mouse movement calculations