简体   繁体   English

煎茶触摸滚动位置

[英]sencha touch scroll position

I have a list which is loaded partially with the help of ListPaging plugin. 我有一个列表,通过ListPaging插件部分加载。 When i change the view and return back to same list, only last items is loaded. 当我更改视图并返回到同一列表时,仅加载最后一个项目。 I can load the next pages however i can not load the previous ones. 我可以加载下一页,但不能加载前一页。

As a result of this, i send the data starting from 0 and finishing in last index from the server. 结果,我从服务器发送了从0开始到最后一个索引结束的数据。 But in this situation, scroll position is lost and it automatically scrolls to top after refresh. 但是在这种情况下,滚动位置会丢失,刷新后它会自动滚动到顶部。

How can i maintain the scroll position or is there a way to load previous records like the ListPaging plugin does for next pages? 我如何保持滚动位置,或者有没有办法像ListPaging插件一样加载先前的记录用于下一页?

Thanks in advance. 提前致谢。

i think the problem you are facing is this 我认为您面临的问题是

list-scrollToTopOnRefresh 列表scrollToTopOnRefresh

This is set to true at default set it to false and try again... Hope it helps 默认情况下将其设置为true,将其设置为false并重试...希望对您有所帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM