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

iOS: TableView: Swipe event not fired when the view is of certain width

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Cannot Reproduce
    • Affects Version/s: Release 2.1.0
    • Fix Version/s: 2013 Sprint 08
    • Component/s: iOS
    • Labels:
    • Environment:

      Titanium Studio: 2.1.0.201206172244
      Titanium SDK: 2.1.0.v20120619164153
      Device: iPad2(V5.1)

      Description

      The swipe event on tableview does not fire when the width of the view which contains the tableview is a certain value i.e. 19% or 20%. Checked on few other random width values like 15%,18%, 21%, 25%, 30% on which the event gets fired.
      The issue occurs only on iPAD and not on iPhone.

      The issue occurs since 2.0.1.

      Step to Reproduce:
      1. Create an application with the code below and launch the application
      2. Swipe on the left view (blue color) which is a tableview

      Actual: The swipe event is not fired. After the device is rotated, the swipe event gets fired on the same tableview.

      Expected: The swipe event should fire for all width of the tableview.

      Ti.UI.setBackgroundColor('white');
      var win = Ti.UI.createWindow();
       
      var tv = Ti.UI.createTableView({
      	backgroundColor: 'blue'
      });
      var leftview=Ti.UI.createView({
      	left: 0, top: 0,
      	height: 200,
      	width: '20%',
      	backgroundColor: 'blue'	
      });
      leftview.add(tv);
      var rightview=Ti.UI.createView({
      	left: '20%',
      	top: 0,
      	height: 200,
      	width: '100%',
      	backgroundColor: 'red'	
      });
      leftview.addEventListener("swipe", function(){
      	alert("swipe")
      });
      win.add(leftview);
      win.add(rightview);
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              shameerj Shameer Jan
              Reporter:
              ssekhri Satyam Sekhri
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code