[英]using iScroll 4 scroll the last element to the start position of first element
[英]Setting scroll position using Iscroll script
我使用iscroll設置了一個很酷的功能,
var iscroll = {....
main: {...
init: function() {...
page_iscroll = new iScroll(...) {}
問題是初始化時如何為iscroll對象設置初始y滾動位置?
在那里,答案
page_iscroll.scrollTo(x,y);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.