This question is locked. New answers and comments are not allowed.
1) Have a ListView with endlessScroll turned on (i.e. connected to a remote dataSource).
2) Flick/scroll up or down.
3) While the ListView is still scrolling, switch to a different view (e.g. click a button in the navbar).
4) Switch back to the view with the ListView.
A problem/exception will often have occurred by the time you switch back. The problem/exception differs between environments:
- In the Device Simulator, you'll often see a blank ListView but no exceptions in the console. By scrolling the empty ListView up or down, the ListView rows usually become visible again.
- On real device (e.g. GS3 and Nexus 7), you'll sometimes see a blank screen as you did in the Device Simulator, and at other times you'll see an actual exception which will freeze/crash the entire app ("Uncaught TypeError: undefined has no properties:2").
My guess is that the "virtual mode" of the endless scroll ListView gets "out of sync" when you switch views while the ListView is still moving/scrolling.
TEMPORARY HACK/WORKAROUND:
To any view that has a ListView with endlessScroll, I add data-hide="stopViewScroller"
The perhaps undesirable side effect is that every time you leave the view then return, you will be back at the top of the ListView. However, the .reset() is necessary for some reason.
This is only a HACK and the bug should really be fixed.
2) Flick/scroll up or down.
3) While the ListView is still scrolling, switch to a different view (e.g. click a button in the navbar).
4) Switch back to the view with the ListView.
A problem/exception will often have occurred by the time you switch back. The problem/exception differs between environments:
- In the Device Simulator, you'll often see a blank ListView but no exceptions in the console. By scrolling the empty ListView up or down, the ListView rows usually become visible again.
- On real device (e.g. GS3 and Nexus 7), you'll sometimes see a blank screen as you did in the Device Simulator, and at other times you'll see an actual exception which will freeze/crash the entire app ("Uncaught TypeError: undefined has no properties:2").
My guess is that the "virtual mode" of the endless scroll ListView gets "out of sync" when you switch views while the ListView is still moving/scrolling.
TEMPORARY HACK/WORKAROUND:
To any view that has a ListView with endlessScroll, I add data-hide="stopViewScroller"
function stopViewScroller(e) { e.view.scroller.yinertia.velocity = 0; e.view.scroller.reset();}The perhaps undesirable side effect is that every time you leave the view then return, you will be back at the top of the ListView. However, the .reset() is necessary for some reason.
This is only a HACK and the bug should really be fixed.