{ "id": "89712", "key": "TIMOB-8616", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "13273", "description": "Release 2.0.2", "name": "Release 2.0.2", "archived": false, "released": true, "releaseDate": "2012-05-31" }, { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13277", "name": "Sprint 2012-08", "archived": true, "released": true, "releaseDate": "2012-04-22" }, { "id": "13270", "description": "Release 1.8 Service Pack 3 (CI for 1_8_X)", "name": "Release 1.8.3", "archived": true, "released": false } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-10T02:16:03.000+0000", "created": "2012-04-09T12:33:07.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "module_view", "qe-testadded" ], "versions": [ { "id": "13270", "description": "Release 1.8 Service Pack 3 (CI for 1_8_X)", "name": "Release 1.8.3", "archived": true, "released": false } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-10T15:43:55.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h3. Problem\r\n\r\nThe swipe event listener is returning a direction with a value of 'unknown' instead of the 'left' or 'right'. This is with build: Apr 5 2012 15:35 rd56dc6a6 of the 1.8.3 SDK.\r\n\r\nThe last build of the 1.8.3 that worked was Apr 2 2012 16:18 rb763622c.\r\n\r\nh3. Steps to Reproduce\r\n\r\n1. Run the code sample below:\r\n\r\n{noformat}\r\nvar win = Ti.UI.createWindow({\r\ntop: 0,\r\nright: 0,\r\nbottom: 0,\r\nleft: 0,\r\n});\r\n\r\nvar view = Ti.UI.createView({\r\ntop: 100,\r\nleft: 100,\r\nwidth: 200,\r\nheight: 200,\r\nbackgroundColor: 'red'\r\n});\r\nview.addEventListener('swipe', function(evt) {\r\nTi.API.log('direction: ' + evt.direction);\r\n});\r\nwin.add(view);\r\n\r\nwin.open();\r\n{noformat}\r\n\r\n2. Click in red view and swipe. On simulator, 'unknown' is printed out to the console.", "attachment": [], "flagged": false, "summary": "iOS: Swipe event's direction returns 'unknown' when it was 'left' or 'right'", "creator": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "environment": "Titanium SDK: 1.8.3 \r\nPlatform OS: iOS v 5.0", "comment": { "comments": [ { "id": "190391", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending against master https://github.com/appcelerator/titanium_mobile/pull/1965.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-04-09T17:11:14.000+0000", "updated": "2012-04-09T17:11:14.000+0000" }, { "id": "194027", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 2.0.2.v20120505151714 on iPad 2 5.1", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-07T15:40:44.000+0000", "updated": "2012-05-07T15:40:44.000+0000" }, { "id": "202305", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to update labels.", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-10T02:15:07.000+0000", "updated": "2012-07-10T02:15:07.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }