Modified to 5 pixels (instead of 15) to prevent clicking on a nearby object