{ "id": "119976", "key": "AC-1955", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2014-01-12T05:04:04.000+0000", "created": "2013-09-15T00:38:16.000+0000", "labels": [ "scrollview", "swipe" ], "versions": [], "issuelinks": [ { "id": "34248", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "113486", "key": "TIMOB-13698", "fields": { "summary": "Android: Adding a 'swipe' event on a window that has a scrollView attached to it, the scrollView does not bounce back or highlighted blue part remains when pulling the scroll beyond the end", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:40:53.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "The swipe gesture doesnt't work if the window contains a ScrollView, actually it works but only on the label inside the ScrollView\r\n\r\nCode to reproduce\r\n\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : 'white'\r\n});\r\nvar scrollView = Ti.UI.createScrollView({\r\n\tlayout : 'vertical',\r\n\tcontentHeight : 'auto',\r\n\ttop : 0,\r\n\tbottom : 0\r\n});\r\nvar label = Ti.UI.createLabel({\r\n\ttext : 'Swipe only works on this label',\r\n\tfont : {\r\n\t\tfontSize : 48\r\n\t},\r\n\ttop : 0\r\n});\r\n\r\nscrollView.add(label);\r\nwin.add(scrollView);\r\n\r\nwin.addEventListener('swipe', function(e) {\r\n\talert('swipe');\r\n});\r\n\r\nwin.open();\r\n", "attachment": [], "flagged": false, "summary": "Swipe (horizontal) doesn't work on a ScrollView", "creator": { "name": "davidbenko", "key": "davidbenko", "displayName": "David Benko", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "davidbenko", "key": "davidbenko", "displayName": "David Benko", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK/Studio 3.1.2\r\nAndroid device", "comment": { "comments": [ { "id": "271224", "author": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "HiDavid Benko,\n\nI have checked this code SDK/Studio 3.1.2 and real android device it works please again check it.\n\nThanks\n", "updateAuthor": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2013-09-16T10:32:39.000+0000", "updated": "2013-09-16T10:32:39.000+0000" }, { "id": "271346", "author": { "name": "davidbenko", "key": "davidbenko", "displayName": "David Benko", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Motiur, I tested on the following devices and it doesnt work: Samsung Galaxy S2 Android 4.1.2, Galaxy S4 4.2.2, Nexus 4 Android 4.2.2 \nBut strangely I have tested on a Galaxy Note 10.1 Android 4.1.2 and the gesture worked without being on the label\nMaybe you should try to reproduce on one of the devices I mentioned", "updateAuthor": { "name": "davidbenko", "key": "davidbenko", "displayName": "David Benko", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-16T20:40:07.000+0000", "updated": "2013-09-16T20:40:07.000+0000" }, { "id": "286692", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening this ticket as I can reproduce it on Samsung Galaxy Nexus device with 4.2.2. However, this appears to be a duplicate of TIMOB-13698 that has been resolved as \"Won't Fix\". Please try the work around suggested in that ticket and let us know if it resolves the problem. ", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-06T00:28:44.000+0000", "updated": "2014-01-06T00:35:04.000+0000" }, { "id": "287864", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolving this ticket as a duplicate of TIMOB-13698. ", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-12T05:04:04.000+0000", "updated": "2014-01-12T05:04:04.000+0000" }, { "id": "295518", "author": { "name": "matthewcongrove", "key": "matthewcongrove", "displayName": "Matthew Congrove", "active": true, "timeZone": "America/Chicago" }, "body": "Though this may be related to TIMOB-13698, it's a very different request. Gesture events should still work on the ScrollView, but not even a pinch event gets fired. This severely limits the ability to create applications that are heavily based on gestures for navigation (like Facebook's Pages app).", "updateAuthor": { "name": "matthewcongrove", "key": "matthewcongrove", "displayName": "Matthew Congrove", "active": true, "timeZone": "America/Chicago" }, "created": "2014-03-04T16:45:12.000+0000", "updated": "2014-03-04T16:45:12.000+0000" }, { "id": "295734", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello,\n\nSwipe (horizontal) is working well on a ScrollView. But pinch event is not getting fired. \nI tested this issue in two Non brand Android Device with 4.0.4 ,4.2.2 SDK and SDK 3.2.1 GA, Titanium Studio, build: 3.2.1.201402041146 \n\n\nThanks", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-03-05T11:11:44.000+0000", "updated": "2014-03-05T11:11:44.000+0000" }, { "id": "297467", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pinch event is marked as iOS only so it is expected not to fire on Android platform.\nhttp://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.ScrollView-event-pinch\n\n[~matthewcongrove] This may be a valid feature request for Android platform so you may want to file such request directly in TIMOB project.\n", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-17T02:10:07.000+0000", "updated": "2014-03-17T02:10:07.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }