@Description: Used to gradually scroll the browser somewhere
@File: browser/scrollTo.js
@Author: Paul Visco
@Param: Object with the following properties
integer y Where to scroll to on the y axis
integer x Where to scroll to on the x axis
integer duration The time milliseconds to scroll over
function onEnd Fires if it successfully completes scrolling
function onStopped Fires if the user stops the scrolling by initiating their own scrolling
@Example://scrolls to y 500, x: 200 and alerts 'done' when complete or stopped of the user scrolls
var scrollTo = sb.browser.scrollTo({
y : 500,
x : 200,
duration : 24,
onEnd : function(){
alert('done');
},
onStopped : function(){
alert('stopped');
});