{ "id": "81612", "key": "AC-2730", "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": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2011-12-28T06:15:30.000+0000", "created": "2011-10-14T16:27:35.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "updated": "2016-03-08T07:47:37.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": "h2. Problem\r\n\r\nWhen user is editing a photo after taking a picture with the camera, if you have allowEditing set to true you need to have the overlay pass through any touch events to the Camera/Photo editor so the user can \"Move & Scale\" the image. However, when the touchEnabled property of UIView is set to false on a Camera overlay, the overlay blocks the user from \"Move & Scale\".\r\n\r\nWe discovered this while upgrading our app to 1.7.3 and support for iOS 5. It worked fine using the same build on iOS 4.\r\n\r\nI have attached just the code to reproduce the issue. No errors/logs show up on the Console log.\r\n\r\nh2. Test case\r\n\r\n{code:lang=javascript}\r\nTi.UI.setBackgroundColor('#000');\r\n\r\n// show camera\r\nvar showCamera = function () {\r\n // create our overlay and box\r\n var box = Ti.UI.createImageView({\r\n touchEnabled: false,\r\n top: 54, width: 320, height: 320,\r\n borderWidth: 1, borderColor: '#fff', backgroundColor: 'transparent'\r\n }), overlay = Ti.UI.createView({\r\n touchEnabled: false, backgroundColor: 'transparent'\r\n }), transform = Ti.UI.create2DMatrix();\r\n overlay.add(box);\r\n // show camera\r\n Titanium.Media.showCamera({\r\n overlay : overlay,\r\n transform : transform.scale(1),\r\n animated : false,\r\n autohide : true,\r\n showControls : true,\r\n allowEditing : true,\r\n mediaTypes : Ti.Media.MEDIA_TYPE_PHOTO,\r\n success : function () {},\r\n cancel : function () {},\r\n error : function () {}\r\n });\r\n};\r\n\r\n// main window\r\nvar win = Ti.UI.createWindow(), cameraBtn = Ti.UI.createButton({\r\n title: 'Camera', top: 20, width: 200, height: 35\r\n});\r\nwin.add(cameraBtn);\r\n\r\n// events\r\ncameraBtn.addEventListener('click', showCamera);\r\n\r\n// open main window\r\nwin.open();\r\n{code}\r\n\r\nh2. Discussions\r\n\r\nQ&A: [Camera Overlay touchEnabled has no affect|http://developer.appcelerator.com/question/126722/camera-overlay-touchenabled-has-no-affect]\r\n", "attachment": [], "flagged": false, "summary": "TiUIView touchEnabled is not being honored as camera overlay ", "creator": { "name": "albeik", "key": "albeik", "displayName": "Haitham Al-Beik", "active": true, "timeZone": "Pacific/Galapagos" }, "subtasks": [], "reporter": { "name": "albeik", "key": "albeik", "displayName": "Haitham Al-Beik", "active": true, "timeZone": "Pacific/Galapagos" }, "environment": "* iPhone Simulator, iPhone 4\r\n* iOS 5\r\n* Titanium 1.7.3.v20111012114613\r\n", "comment": { "comments": [ { "id": "169443", "author": { "name": "albeik", "key": "albeik", "displayName": "Haitham Al-Beik", "active": true, "timeZone": "Pacific/Galapagos" }, "body": "Simpler app.js code to reproduce the issue.", "updateAuthor": { "name": "albeik", "key": "albeik", "displayName": "Haitham Al-Beik", "active": true, "timeZone": "Pacific/Galapagos" }, "created": "2011-10-17T12:59:13.000+0000", "updated": "2011-10-17T12:59:13.000+0000" }, { "id": "177384", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Haitham\r\n\r\nPlease note the changes I have made to this ticket to allow it to be escalated.\r\n\r\nWould you please check the wording to ensure that I have not changed your intended meaning?\r\n\r\nWould you test this for the latest release 1.8.0.1, to confirm this has not been resolved already?\r\n\r\nOnce you have provided this information, I will escalate it to our engineering team.\r\n\r\nCheers", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-28T06:15:18.000+0000", "updated": "2011-12-28T06:15:18.000+0000" }, { "id": "183546", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Closing due to inactivity. If this issue still exists, please raise a new ticket, including all the information in the [JIRA Ticket Checklist|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist] to ensure that we can escalate it quickly. Read [How to Submit a Bug Report|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report] if you have not read it before, and always start a ticket using the [JIRA Ticket Template|https://wiki.appcelerator.org/display/guides/JIRA+Ticket+Template].\r\n\r\nThanks in advance", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-02-17T02:23:05.000+0000", "updated": "2012-02-17T02:23:05.000+0000" }, { "id": "218788", "author": { "name": "jerodfritz", "key": "jerodfritz", "displayName": "Jerod Fritz", "active": true, "timeZone": "America/New_York" }, "body": "I'm having this issue as well with SDK 2.1.2GA . If an overlay is present allowEditing fails to work because click events are not passing through the overlay even with touchEnabled : false just as in the example above. ", "updateAuthor": { "name": "jerodfritz", "key": "jerodfritz", "displayName": "Jerod Fritz", "active": true, "timeZone": "America/New_York" }, "created": "2012-09-13T05:47:55.000+0000", "updated": "2012-09-13T05:47:55.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }