extensions/amp-carousel/0.2/amp-carousel.js
/**
   * Moves the scroll position by one viewport, either forwards or backwards.
   * This reverses the actual scroll position moved based on directionality.
   * @param {boolean} forwards
   * @private
   */
Moves the scroll position by one viewport, either forwards or backwards.
This reverses the actual scroll position moved based on directionality.
@param {boolean} forwards
@private
Moves the scroll position by one viewport either forwards or backwards . This reverses the actual scroll position moved based on directionality . @param { boolean } forwards @private
moveScrollOneViewport_(forwards) {
    const el = devAssert(this.scrollContainer_);
    const {direction} = computedStyle(this.win, el);
    const forwardsMultiplier = forwards ? 1 : -1;
    const directionMulitplier = direction == 'rtl' ? -1 : 1;
    el. scrollLeft +=
      el. offsetWidth * forwardsMultiplier * directionMulitplier;
  }
moveScrollOneViewport_ ( forwards ) { const el = devAssert ( this . scrollContainer_ ) ; const { direction } = computedStyle ( this . win , el ) ; const forwardsMultiplier = forwards ? 1 : - 1 ; const directionMulitplier = direction == 'rtl' ? - 1 : 1 ; el . scrollLeft += el . offsetWidth * forwardsMultiplier * directionMulitplier ; }
Moves the scroll position by one viewport, either forwards or backwards.
Moves the scroll position by one viewport either forwards or backwards .
/*OK*/ /*OK*/