[英]Setting scroll position using Iscroll script
I have a cool function set up like this with iscroll, 我使用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? 问题是初始化时如何为iscroll对象设置初始y滚动位置?
there it is, the answer 在那里,答案
page_iscroll.scrollTo(x,y); page_iscroll.scrollTo(x,y);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.