function SwipeDetector(element, swipeCallback) {
    element.addEventListener('touchstart', this.onTouchMove_.bind(this));
    element.addEventListener('touchend', this.onTouchEnd_.bind(this));
    element.addEventListener('touchcancel', this.clearSwipe_.bind(this));
    element.addEventListener('touchmove', this.onTouchMove_.bind(this));

    /** @private {!function(!{x: !number, y: !number})} */
    this.swipeCallback_ = swipeCallback;
  }
/**
   * Used to detect potential swipe gestures originating from the provided HTML
   * element. It tracks touch events on the element and remembers the last
   * touch move longer than TOUCH_MOVE_THRESHOLD. On touch gesture end, it
   * invokes the callback with the velocity vector of the last movement that was
   * long enough - the vector can then be used to determine if the last movement
   * should be considered a swipe or not.
   *
   * @param  {!HTMLElement} element The element whose touch events should be
   *     tracked.
   * @param  {!function(!{x: !number, y: !number})} swipeCallback Called when
   *     a swipe has been detected - the argument will be an object representing
   *     2-D swipe movement velocity vector.
   */
Used to detect potential swipe gestures originating from the provided HTML
element. It tracks touch events on the element and remembers the last
touch move longer than TOUCH_MOVE_THRESHOLD. On touch gesture end, it
invokes the callback with the velocity vector of the last movement that was
long enough - the vector can then be used to determine if the last movement
should be considered a swipe or not.

@param  {!HTMLElement} element The element whose touch events should be
tracked.
@param  {!function(!{x: !number, y: !number})} swipeCallback Called when
a swipe has been detected - the argument will be an object representing
2-D swipe movement velocity vector.
Used to detect potential swipe gestures originating from the provided HTML element . It tracks touch events on the element and remembers the last touch move longer than TOUCH_MOVE_THRESHOLD . On touch gesture end it invokes the callback with the velocity vector of the last movement that was long enough - the vector can then be used to determine if the last movement should be considered a swipe or not . @param { !HTMLElement } element The element whose touch events should be tracked . @param { !function ( ! { x : !number y : !number } ) } swipeCallback Called when a swipe has been detected - the argument will be an object representing 2 - D swipe movement velocity vector .
function SwipeDetector(element, swipeCallback) {
    element.addEventListener('touchstart', this.onTouchMove_.bind(this));
    element.addEventListener('touchend', this.onTouchEnd_.bind(this));
    element.addEventListener('touchcancel', this.clearSwipe_.bind(this));
    element.addEventListener('touchmove', this.onTouchMove_.bind(this));
    this.swipeCallback_ = swipeCallback;
  }
function SwipeDetector ( element , swipeCallback ) { element . addEventListener ( 'touchstart' , this . onTouchMove_ . bind ( this ) ) ; element . addEventListener ( 'touchend' , this . onTouchEnd_ . bind ( this ) ) ; element . addEventListener ( 'touchcancel' , this . clearSwipe_ . bind ( this ) ) ; element . addEventListener ( 'touchmove' , this . onTouchMove_ . bind ( this ) ) ; this . swipeCallback_ = swipeCallback ; }
Used to detect potential swipe gestures originating from the provided HTML
 element.
Used to detect potential swipe gestures originating from the provided HTML element .
/** @private {!function(!{x: !number, y: !number})} */