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

Android: TableView longclick event fired twice.

    Details

      Description

      Actual result
      The TableView 'longclick' event is fired twice.

      Expected result
      The event should only fire once.

      Steps to reproduce
      1. Run the test case
      2. Search for LONGCLICK in DDMS
      3. Hold finger down on one of the rows
      4. Verify that it's called twice

      Test case

      var win = Ti.UI.createWindow({
      	backgroundColor : 'white'
      });
       
      var data = [{
      	title : 'Apples'
      }, {
      	title : 'Bananas'
      }, {
      	title : 'Carrots'
      }, {
      	title : 'Potatoes'
      }];
      var table = Ti.UI.createTableView({
      	data : data
      });
       
      table.addEventListener('longclick', function(e) {
      	Ti.API.info('LONGCLICK');
      });
       
      win.add(table);
       
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              sunila Sunila
              Reporter:
              mry Yoram
              Reviewer:
              Allen Yeung
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code