Use midpoint in zoom function when the interpolated point is too close to the end points.