getScrollState

returns the scroll position

object getScrollState();
objectscroll position object as ({x:scrollLeft,y:scrollTop})

Example

var scPos = $$("mylist").getScrollState(); // ({x:some,y:some})
var posx = scPos.x;
var posy = scPos.y;

See also
Back to top