correctPan(axis, panOffset) {
    // checkPanBounds
    return clamp(panOffset, this.max[axis], this.min[axis]);
  }
Correct pan position if it's beyond the bounds

@param {Axis} axis x or y
@param {number} panOffset
@returns {number}