Adjust scroll position using Iscroll script

I have a cool function configured as iscroll,

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

The question is, how do I adjust the starting position y to scroll the iscroll object during initialization?

+4
source share
1 answer

here it is, the answer

page_iscroll.scrollTo (x, y);

+2
source

Source: https://habr.com/ru/post/1489137/


All Articles