{ "id": "155003", "key": "TIMOB-20493", "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": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-04-04T13:40:11.000+0000", "created": "2016-02-18T09:00:23.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "ScrollableView", "ios", "mainthread", "sdk-5.1.2" ], "versions": [], "issuelinks": [], "assignee": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-08-04T17:34:07.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": "Using SDK 5.1.2 there is a problem on the ScrollableView element. Only the first two views can fire up events.\r\nAll the other views cannot fire events, so no _click_ event are captured, no _postlayout_, ..\r\nThe problem is relevant only for *iOS + SDK 5.1.2*.\r\n\r\nI switched back to SDK 5.1.1 and everything works fine :) .", "attachment": [], "flagged": false, "summary": "iOS: ScrollableView fire events only for the first two views", "creator": { "name": "parnanzio", "key": "parnanzio", "displayName": "PaRnanZio Gun", "active": true, "timeZone": "Europe/Rome" }, "subtasks": [], "reporter": { "name": "parnanzio", "key": "parnanzio", "displayName": "PaRnanZio Gun", "active": true, "timeZone": "Europe/Rome" }, "environment": "Mac OSX 10.11.3 (El Capitan)\r\nAppcelerator Studio 4.4.0\r\nTitanium SDK 5.1.2\r\nPlatform iOS", "closedSprints": [ { "id": 614, "state": "closed", "name": "2016 Sprint 07 SDK", "startDate": "2016-03-26T00:38:56.432Z", "endDate": "2016-04-09T00:38:00.000Z", "completeDate": "2016-04-11T04:41:08.231Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "377221", "author": { "name": "jnaher", "key": "jnaher", "displayName": "Jebun Naher", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nWe tested the issue you reported. Events working as expected for each scrollableView element.\r\n\r\n*Test Environment:*\r\nAppcelerator Studio, build: 4.5.0.201602170831\r\nTi.SDK: 5.1.2GA\r\nSimulator: iOS 9.1\r\n\r\nTest Code:\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nvar view1 = Ti.UI.createView({ backgroundColor:'red' });\r\nvar view2 = Ti.UI.createView({ backgroundColor:'green' });\r\nvar view3 = Ti.UI.createView({ backgroundColor:'blue' });\r\nvar view4 = Ti.UI.createView({ backgroundColor:'black' });\r\nvar view5 = Ti.UI.createView({ backgroundColor:'yellow' });\r\nvar view6 = Ti.UI.createView({ backgroundColor:'gray' });\r\nvar scrollableView = Ti.UI.createScrollableView({\r\n views:[view1,view2,view3,view4,view5,view6],\r\n showPagingControl:true\r\n});\r\nscrollableView.addEventListener('dblclick', function() {\r\n Ti.API.info('click event heard');\r\n}); \r\n/*\r\nscrollableView.addEventListener('postlayout', function() {\r\n Ti.API.info('postlayout event heard');\r\n});\r\n*/\r\nwin.add(scrollableView);\r\nwin.open();\r\n{code}\r\n\r\nOutput:\r\n{code}\r\n[INFO] : click event heard\r\n[INFO] : click event heard\r\n[INFO] : click event heard\r\n[INFO] : click event heard\r\n[INFO] : click event heard\r\n[INFO] : click event heard\r\n{code}\r\n\r\nThanks.", "updateAuthor": { "name": "jnaher", "key": "jnaher", "displayName": "Jebun Naher", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-02-18T12:04:29.000+0000", "updated": "2016-02-18T12:04:29.000+0000" }, { "id": "377222", "author": { "name": "parnanzio", "key": "parnanzio", "displayName": "PaRnanZio Gun", "active": true, "timeZone": "Europe/Rome" }, "body": "The problem is not on the event on the ScrollableView, but on the inner views (view1, view2, ..)", "updateAuthor": { "name": "parnanzio", "key": "parnanzio", "displayName": "PaRnanZio Gun", "active": true, "timeZone": "Europe/Rome" }, "created": "2016-02-18T12:10:22.000+0000", "updated": "2016-02-18T12:10:22.000+0000" }, { "id": "377536", "author": { "name": "rdperottoni", "key": "rdperottoni", "displayName": "Rodolfo Perottoni", "active": true, "timeZone": "Australia/Brisbane" }, "body": "Getting the same error with 5.2.0.RC", "updateAuthor": { "name": "rdperottoni", "key": "rdperottoni", "displayName": "Rodolfo Perottoni", "active": true, "timeZone": "Australia/Brisbane" }, "created": "2016-02-22T18:00:54.000+0000", "updated": "2016-02-22T18:00:54.000+0000" }, { "id": "377549", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, I have tested the issue in SDK 5.2.0.v20160114021251. The issue is not reproducible. Event fired in views as expected.\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n\r\n\r\nvar view1 = Ti.UI.createView({\r\n backgroundColor : '#123'\r\n});\r\n\r\nview1.addEventListener('click', function(e) {\r\n\r\n Titanium.API.info(\"You clicked the view1\");\r\n\r\n}); \r\n\r\nvar view2 = Ti.UI.createView({\r\n backgroundColor : '#246'\r\n});\r\n\r\nview2.addEventListener('click', function(e) {\r\n\r\n Titanium.API.info(\"You clicked the view2\");\r\n\r\n});\r\n\r\nvar view3 = Ti.UI.createView({\r\n backgroundColor : '#48b'\r\n});\r\n\r\nview3.addEventListener('click', function(e) {\r\n\r\n Titanium.API.info(\"You clicked the view3\");\r\n\r\n});\r\n\r\nvar view4 = Ti.UI.createView({\r\n backgroundColor : 'green'\r\n});\r\n\r\nview4.addEventListener('click', function(e) {\r\n\r\n Titanium.API.info(\"You clicked the view4\");\r\n\r\n});\r\n\r\nvar view5 = Ti.UI.createView({\r\n backgroundColor : '#231'\r\n});\r\n\r\nview5.addEventListener('click', function(e) {\r\n\r\n Titanium.API.info(\"You clicked the view5\");\r\n\r\n});\r\n\r\nvar scrollableView = Ti.UI.createScrollableView({\r\n\r\n views : [view1, view2, view3, view4, view5],\r\n\r\n showPagingControl : true\r\n\r\n});\r\n\r\nwin.add(scrollableView);\r\n\r\nwin.open(); \r\n{code}\r\nh5. Environment\r\nAppcelerator Command-Line Interface, version 5.1.0\r\nTitanium SDK Version: 5.2.0.v20160114021251\r\nPlatform: iOS\r\nSimulator: iphone 6S Plus/ iOS 9.1\r\n\r\n{code}\r\n[INFO] : You clicked the view1\r\n[INFO] : You clicked the view1\r\n[INFO] : You clicked the view2\r\n[INFO] : You clicked the view3\r\n[INFO] : You clicked the view4\r\n[INFO] : You clicked the view5\r\n[INFO] : You clicked the view4\r\n[INFO] : You clicked the view3\r\n[INFO] : You clicked the view2\r\n[INFO] : You clicked the view1\r\n{code}\r\nNot a valid bug. Closing this ticket. Thanks.\r\n", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-02-22T20:14:04.000+0000", "updated": "2016-02-22T20:14:04.000+0000" }, { "id": "377557", "author": { "name": "rdperottoni", "key": "rdperottoni", "displayName": "Rodolfo Perottoni", "active": true, "timeZone": "Australia/Brisbane" }, "body": "This is a valid bug!\r\nHere's a sample alloy project that i've made.\r\n\r\nSteps to reproduce:\r\n* Click the \"jump\" right nav button.\r\n* Click on the \"CLICK\" button -> it will print \"simple\" into the console.\r\n* Swipe left and click on any of the TableViewRows -> their title will be printed in the console\r\n* click on the \"create\" button in the bottom of the screen -> new views will be created with tables and some rows\r\n* click on any TableViewRow -> their title is not printed on 5.2.0.v20160220080449 \r\n* tested on 5.0.3 -> it works good.\r\n\r\nindex.xml\r\n\r\n{code:xml}\r\n\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t