Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1523] [iOs] Pull to refresh dont slide up back

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionDuplicate
Resolution Date2014-06-09T16:30:18.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAlloy
Labelsios, iphone
Reporterviviz
AssigneeRitu Agrawal
Created2014-06-05T08:11:30.000+0000
Updated2016-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

FileDateSize
refresh-control-bug.gif2014-06-05T08:11:30.000+0000222040

Comments

  1. Ritu Agrawal 2014-06-09

    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.
  2. viviz 2014-06-10

    Thank you :)

JSON Source