Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-1523

[iOs] Pull to refresh dont slide up back

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: None
    • Component/s: Alloy
    • Labels:
    • Environment:

      Osx maverick 10.9.3
      Titanium sdk 3.2.3 GA , CLI version 3.2.3
      platform: ios7.1
      device: iphone retina 3.5 inch (simulator)

      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

          Issue Links

            Activity

              People

              • Assignee:
                ragrawal Ritu Agrawal
                Reporter:
                vivizth viviz
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Integration