only allow selection using the bounding box if the box is visible