Adjust clicks to valid coords.