xRange.y = Math.min(Math.max(xRange.y, 0), this._count.x - 1)