- this._gesture_count++;
-
- if ( this._gesture_count === 3 ) {
- switch ( dir ) {
- case direction.top:
- this.scrollTo( this._sx, 0, this.options.overshootDuration );
- break;
- case direction.bottom:
- this.scrollTo( this._sx, -( this._getViewHeight() - this._$clip.height() ),
- this.options.overshootDuration );
- break;
- case direction.left:
- this.scrollTo( 0, this._sy, this.options.overshootDuration );
- break;
- case direction.right:
- this.scrollTo( -( this._getViewWidth() - this._$clip.width() ), this._sy,
- this.options.overshootDuration );
- break;
- }
-
- reset();
- this._didDrag = true;
-
- return true;
- }
-