support for zoom out near pan limits

support for zoom out near pan limits