Make sure of the non-negative mouse position