简体   繁体   中英

Infinite list with Sencha Touch 2.3

I'm developping a chat interface and trying to obtain the infinite list effect with Sencha Touch list component. I want to dynamically load older messages when the user scrolls up.

myList.getStore().insert(0,itemsArray);

The problem : When I insert new items at the top of the list it automatically scrolls to the top. Is there a way to avoid it ?

This should be fixed by setting the list's scrollToTopOnRefresh config option to false

see http://docs-origin.sencha.com/touch/2.3.1/#!/api/Ext.dataview.List-cfg-scrollToTopOnRefresh

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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