lib/abaaso.js
function ( dest, ms ) {
		var defer = deferred(),
		    start = client.scrollPos(),
		    t     = 0;

		ms = ( !isNaN( ms ) ? ms : 250 ) / 100;

		utility.repeat( function () {
			var pos = math.bezier( start[0], start[1], dest[0], dest[1], ++t / 100 );

			window.scrollTo( pos[0], pos[1] );

			if ( t === 100 ) {
				defer.resolve( true );
				return false;
			}
		}, ms, "scrolling" );

		return defer;
	}
function ( dest, ms ) {
		var defer = deferred(),
		    start = client.scrollPos(),
		    t     = 0;

		ms = ( !isNaN( ms ) ? ms : 250 ) / 100;

		utility.repeat( function () {
			var pos = math.bezier( start[0], start[1], dest[0], dest[1], ++t / 100 );

			window.scrollTo( pos[0], pos[1] );

			if ( t === 100 ) {
				defer.resolve( true );
				return false;
			}
		}, ms, "scrolling" );

		return defer;
	}
function ( dest , ms ) { var defer = deferred ( ) , start = client . scrollPos ( ) , t = 0 ; ms = ( ! isNaN ( ms ) ? ms : 250 ) / 100 ; utility . repeat ( function ( ) { var pos = math . bezier ( start [ 0 ] , start [ 1 ] , dest [ 0 ] , dest [ 1 ] , ++ t / 100 ) ; window . scrollTo ( pos [ 0 ] , pos [ 1 ] ) ; if ( t === 100 ) { defer . resolve ( true ) ; return false ; } } , ms , "scrolling" ) ; return defer ; }
Scrolls to a position in the view using a two point bezier curve

@method scroll
@param  {Array}  dest Coordinates
@param  {Number} ms   [Optional] Milliseconds to scroll, default is 250, min is 100
@return {Object}      Deferred
Scrolls to a position in the view using a two point bezier curve