kangoroo
kangoroo

Reputation: 357

Setting scroll position using Iscroll script

I have a cool function set up like this with iscroll,

var iscroll = {....
  main: {...
     init: function() {...
     page_iscroll = new iScroll(...) {} 

the question is how do i setup an initial y scroll position for the iscroll object, when it's initialized?

Upvotes: 4

Views: 3511

Answers (1)

kangoroo
kangoroo

Reputation: 357

there it is, the answer

page_iscroll.scrollTo(x,y);

Upvotes: 2

Related Questions