percentPerPost() {
    const count = this.count() || 1;
    const visible = this.visible || 1;

    // To stop the handle of the scrollbar from getting too small when there
    // are many posts, we define a minimum percentage height for the handle
    // calculated from a 50 pixel limit. From this, we can calculate the
    // minimum percentage per visible post. If this is greater than the actual
    // percentage per post, then we need to adjust the 'before' percentage to
    // account for it.
    const minPercentVisible = 50 / this.$('.Scrubber-scrollbar').outerHeight() * 100;
    const percentPerVisiblePost = Math.max(100 / count, minPercentVisible / visible);
    const percentPerPost = count === visible ? 0 : (100 - percentPerVisiblePost * visible) / (count - visible);

    return {
      index: percentPerPost,
      visible: percentPerVisiblePost
    };
  }
/**
   * Get the percentage of the height of the scrubber that should be allocated
   * to each post.
   *
   * @return {Object}
   * @property {Number} index The percent per post for posts on either side of
   *     the visible part of the scrubber.
   * @property {Number} visible The percent per post for the visible part of the
   *     scrubber.
   */
Get the percentage of the height of the scrubber that should be allocated
to each post.

@return {Object}
@property {Number} index The percent per post for posts on either side of
the visible part of the scrubber.
@property {Number} visible The percent per post for the visible part of the
scrubber.
Get the percentage of the height of the scrubber that should be allocated to each post . @return { Object } @property { Number } index The percent per post for posts on either side of the visible part of the scrubber . @property { Number } visible The percent per post for the visible part of the scrubber .
percentPerPost() {
    const count = this.count() || 1;
    const visible = this.visible || 1;
    const minPercentVisible = 50 / this.$('.Scrubber-scrollbar').outerHeight() * 100;
    const percentPerVisiblePost = Math.max(100 / count, minPercentVisible / visible);
    const percentPerPost = count === visible ? 0 : (100 - percentPerVisiblePost * visible) / (count - visible);
    return {
      index: percentPerPost,
      visible: percentPerVisiblePost
    };
  }
percentPerPost ( ) { const count = this . count ( ) || 1 ; const visible = this . visible || 1 ; const minPercentVisible = 50 / this . $ ( '.Scrubber-scrollbar' ) . outerHeight ( ) * 100 ; const percentPerVisiblePost = Math . max ( 100 / count , minPercentVisible / visible ) ; const percentPerPost = count === visible ? 0 : ( 100 - percentPerVisiblePost * visible ) / ( count - visible ) ; return { index : percentPerPost , visible : percentPerVisiblePost } ; }
Get the percentage of the height of the scrubber that should be allocated
 to each post.
Get the percentage of the height of the scrubber that should be allocated to each post .
// To stop the handle of the scrollbar from getting too small when there // are many posts, we define a minimum percentage height for the handle // calculated from a 50 pixel limit. From this, we can calculate the // minimum percentage per visible post. If this is greater than the actual // percentage per post, then we need to adjust the 'before' percentage to // account for it.