extensions/amp-carousel/0.1/slidescroll.js
/**
   * Cancels the touchmove events for the element so that viewer does not
   * consider the swipes in the carousel as swipes for changing AMP documents.
   * @private
   */
Cancels the touchmove events for the element so that viewer does not
consider the swipes in the carousel as swipes for changing AMP documents.
@private
Cancels the touchmove events for the element so that viewer does not consider the swipes in the carousel as swipes for changing AMP documents . @private
cancelTouchEvents_() {
    this.element.addEventListener('touchmove', event => {
      event.stopPropagation();
    });
  }
cancelTouchEvents_ ( ) { this . element . addEventListener ( 'touchmove' , event => { event . stopPropagation ( ) ; } ) ; }
Cancels the touchmove events for the element so that viewer does not
 consider the swipes in the carousel as swipes for changing AMP documents.
Cancels the touchmove events for the element so that viewer does not consider the swipes in the carousel as swipes for changing AMP documents .
// TODO(aghassemi, #4754): Ideally we only stop propagation of horizontal // touchmove events.