src/components/tabs/tabsPaginationService.js
function increasePageOffset(elements, currentOffset) {
    var canvas       = elements.canvas,
        maxOffset    = getTotalTabsWidth(elements) - canvas.clientWidth,
        tabOffsets   = getTabOffsets(elements),
        i, firstHiddenTabOffset;

    // Find the first partially (or fully) invisible tab
    for (i = 0; i < tabOffsets.length, tabOffsets[i] <= currentOffset + canvas.clientWidth; i++) {
      firstHiddenTabOffset = tabOffsets[i];
    }

    // Return the offset of the first hidden tab, or the maximum offset (whichever is smaller)
    return Math.min(maxOffset, firstHiddenTabOffset);
  }
function increasePageOffset(elements, currentOffset) {
    var canvas       = elements.canvas,
        maxOffset    = getTotalTabsWidth(elements) - canvas.clientWidth,
        tabOffsets   = getTabOffsets(elements),
        i, firstHiddenTabOffset;

    // Find the first partially (or fully) invisible tab
    for (i = 0; i < tabOffsets.length, tabOffsets[i] <= currentOffset + canvas.clientWidth; i++) {
      firstHiddenTabOffset = tabOffsets[i];
    }

    // Return the offset of the first hidden tab, or the maximum offset (whichever is smaller)
    return Math.min(maxOffset, firstHiddenTabOffset);
  }
function increasePageOffset ( elements , currentOffset ) { var canvas = elements . canvas , maxOffset = getTotalTabsWidth ( elements ) - canvas . clientWidth , tabOffsets = getTabOffsets ( elements ) , i , firstHiddenTabOffset ; // Find the first partially (or fully) invisible tab for ( i = 0 ; i < tabOffsets . length , tabOffsets [ i ] <= currentOffset + canvas . clientWidth ; i ++ ) { firstHiddenTabOffset = tabOffsets [ i ] ; } // Return the offset of the first hidden tab, or the maximum offset (whichever is smaller) return Math . min ( maxOffset , firstHiddenTabOffset ) ; }
Returns the offset for the next increasing page.

@param elements
@param currentOffset
@returns {number}
Returns the offset for the next increasing page .