Code

Only in the selector tool we should snap in bbox mode (PointType = SNAPPOINT_BBOX)