Utility object that helps to make custom autoscrollers.
Starts the autoscrolling process.
Options:
| referrenceElement | DOMElement | mandatory | the element used as reference |
| elementsToScroll | Array | mandatory | collection of elements to scroll |
| step | Integer | optional | pixels to scroll on each step |
| interval | Integer | optional | miliseconds between each step |
This is called to stop autoscrolling
Code sample:
$('div.groupWrapper').Sortable(
{
accept: 'groupItem',
helperclass: 'sortHelper',
activeclass : 'sortableactive',
hoverclass : 'sortablehover',
handle: 'div.itemHeader',
tolerance: 'pointer',
onChange : function(ser)
{
},
onStart : function()
{
$.iAutoscroller.start(this, document.getElementsByTagName('body'));
},
onStop : function()
{
$.iAutoscroller.stop();
}
}
);