[AC-1523] [iOs] Pull to refresh dont slide up back
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Duplicate |
Resolution Date | 2014-06-09T16:30:18.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Alloy |
Labels | ios, iphone |
Reporter | viviz |
Assignee | Ritu Agrawal |
Created | 2014-06-05T08:11:30.000+0000 |
Updated | 2016-03-08T07:37:58.000+0000 |
Description
how to reproduce:
while refreshing if I scroll up a little bit ( to center of refresh icon )
and release ( and tap once if you use simulator ) ,
it will not slide back when refeshing is finished.
or
pull down until refresh is start but dont release ,
then pull up a little bit ( to center of refresh icon )
and then release ( and tap once if you use simulator )
it will not slide back when refeshing is finished.
( please see attach image )
this code come from example in this page http://docs.appcelerator.com/titanium/3.0/#!/api/Titanium.UI.RefreshControl
var win = Ti.UI.createWindow({
fullscreen:true
});
var counter = 0;
function genData()
{
var data = [];
var i=1;
for (i=1;i<=30;i++) {
data.push({properties:{title:'ROW '+(counter+i)}})
}
counter += 3;
return data;
}
var section = Ti.UI.createListSection();
section.setItems(genData());
var control = Ti.UI.createRefreshControl({
tintColor:'red'
})
var listView = Ti.UI.createListView({
sections:[section],
refreshControl:control
});
control.addEventListener('refreshstart',function(e){
Ti.API.info('refreshstart');
setTimeout(function(){
Ti.API.debug('Timeout');
section.appendItems(genData());
control.endRefreshing();
}, 2000);
})
win.add(listView);
win.open();
Attachments
File | Date | Size |
---|---|---|
refresh-control-bug.gif | 2014-06-05T08:11:30.000+0000 | 222040 |
This is a duplicate of TIMOB-16218. Please watch TIMOB-16218 for latest updates. Also, you can try the workaround for now that is added in the comment to solve this issue.
Thank you :)