Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-14888

iOS: TableView touchmove only fires once when dragging views in a TableViewRow

    Details

      Description

      Problem
      With Titanium SDK 3.1.1, the touchmove event is only fired once and then stops once it tries to animate the view being touched. In 3.1.0, the touchmove event is fired repeatedly as expected, so the problem was introduced in 3.1.1.

      Steps to reproduce
      Add a view inside of a TableViewRow and add a touchmove event listener with an animation.

      Test case

      var win1 = Ti.UI.createWindow({
          backgroundColor : "#FFF"
      });
       
      var tableview = Ti.UI.createTableView();
       
      var tableviewrow = Ti.UI.createTableViewRow({
          selectionStyle:Titanium.UI.iPhone.TableViewCellSelectionStyle.NONE
      });
       
      var view = Ti.UI.createView({
          backgroundColor : '#ff0',
          borderColor:'red',
          borderWidth:2
      });
      tableviewrow.add(view);
       
      view.addEventListener('touchstart', function() {
          Ti.API.info("####### touchstart");
      });
       
      view.addEventListener('touchmove', function(e) {
          Ti.API.info("touch moved!");
          //view.right = e.x;
          
          view.animate({
              right : e.x,
              duration : 20
          });
          
      });
       
      view.addEventListener('touchend', function() {
          Ti.API.info("####### touch ended");
          view.right = 0;
      });
       
      view.addEventListener('touchcancel', function() {
          Ti.API.info("####### touch canceled");
          view.right = 0;
      });
       
      tableview.setData([tableviewrow]);
       
      win1.add(tableview);
      win1.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vduggal Vishal Duggal (Inactive)
                Reporter:
                neilgupta Neil Gupta
                Reviewer:
                Sabil Rahim
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-17215
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code