{ "id": "87483", "key": "TIMOB-8479", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": [], "resolution": null, "resolutiondate": null, "created": "2012-03-07T03:03:47.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:55.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "1) create a scrollableView\r\n{code}\r\nvar myScrollableView = Ti.UI.createScrollableView({\r\n\tid:'myScrollableView',\r\n\tdisableBounce:true,\r\n\twidth:Ti.Platform.displayCaps.platformWidth,\r\n\theight:Ti.Platform.displayCaps.platformHeight,\r\n\tzIndex:1000\r\n});\r\n{code}\r\n\r\n2) create a scrollView containning 2 imageViews and add the scrollView in the scrollableView\r\n{code}\r\nvar myScrollView = Ti.UI.createScrollView({\r\n\t\t\tleft: Ti.Platform.displayCaps.platformWidth,\r\n\t\t\ttop : Ti.Platform.displayCaps.platformHeight,\r\n\t\t\tzoomScale : 1,\r\n\t\t\tminZoomScale : 1,\r\n\t\t\tmaxZoomScale : 2,\r\n\t\t\twidth : Ti.Platform.displayCaps.platformWidth,\r\n\t\t\theight : Ti.Platform.displayCaps.platformHeight,\r\n\t\t\tcontentWidth : Ti.Platform.displayCaps.platformWidth,\r\n\t\t\tcontentHeight : Ti.Platform.displayCaps.platformHeight,\r\n\t\t\tshowHorizontalScrollIndicator : false,\r\n\t\t\tdisableBounce: true\r\n\t\t});\r\n\r\nvar img1 = Ti.UI.createImageView({\r\n\t\t\t\tpreventDefaultImage: true,\r\n\t\t\t\timage: 'an image you what to show',\r\n\t\t\t\twidth: Ti.Platform.displayCaps.platformWidth,\r\n\t\t\t\theight: Ti.Platform.displayCaps.platformHeight\r\n\t\t\t});\r\n\r\nvar img2 = Ti.UI.createImageView({\r\n\t\t\t\tpreventDefaultImage: true,\r\n\t\t\t\timage: 'an image you what to show',\r\n\t\t\t\twidth: Ti.Platform.displayCaps.platformWidth,\r\n\t\t\t\theight: Ti.Platform.displayCaps.platformHeight\r\n\t\t\t});\r\n\r\nmyScrollView.add(img1);\r\nmyScrollView.add(img2);\r\nmyScrollableView.add(myScrollView);\r\n{code}\r\n\r\n3) add an touchStart Event Listener on scrollableView or on the scrollableView\r\n{code}\r\nmyScrollableView.addEventListener('touchstart', function(){ Ti.API.info('TOUCH START'); });\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Event touchStart is not triggered when beginning a scroll in a scrollableView containing a scrollView", "creator": { "name": "max", "key": "max", "displayName": "process", "active": true, "timeZone": "Europe/Paris" }, "subtasks": [], "reporter": { "name": "max", "key": "max", "displayName": "process", "active": true, "timeZone": "Europe/Paris" }, "environment": "Titanium mobile sdk 1.8.2", "comment": { "comments": [ { "id": "189405", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Whether the properties of scrollView or images that are set within it obstruct the \"touchStart\" event. In fact that event is triggered when scrolling to a second view.\r\n\r\nSee simple test case that demonstrates the \"touchStart\" is triggered when beginning a scroll in a scrollableView containing a scrollView:\r\n\r\nh6.Repro sequence\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n \r\nvar view1 = Ti.UI.createScrollView({});\r\nvar view2 = Ti.UI.createView({ backgroundColor:'#246' });\r\nvar view3 = Ti.UI.createView({ backgroundColor:'#48b' });\r\n \r\nvar scrollableView = Ti.UI.createScrollableView({\r\n views:[view1,view2,view3],\r\n showPagingControl:true\r\n});\r\n \r\nwin.add(scrollableView);\r\nwin.open();\r\n\r\nscrollableView.addEventListener('touchstart', function() {\r\n\tTi.API.info('TOUCH START');\r\n});\r\n{code}\r\n\r\nh6.Console output\r\n{code}\r\n[INFO] Titanium SDK version: 1.8.2 (02/23/12 17:46 59b3a90)\r\n[INFO] iPhone Device family: universal\r\n[INFO] iPhone SDK version: 5.0\r\n[INFO] iPhone simulated device: iphone\r\n[INFO] Launching application in Simulator\r\n[INFO] Launched application in Simulator (4.75 seconds)\r\n[INFO] Found 5.0 patch installed\r\n[INFO] Application started\r\n[INFO] 1BestPractices/1.0 (1.8.2.59b3a90)\r\n[INFO] TOUCH START\r\n{code}\r\n\r\nSo this test case should be considered INVALID unless there is a reason to use such objects & properties as per intended before.", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-31T21:41:52.000+0000", "updated": "2012-03-31T21:41:52.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }