{ "id": "132267", "key": "AC-1721", "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": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2014-06-26T16:30:38.000+0000", "created": "2014-06-26T10:59:15.000+0000", "labels": [ "3.3.0.RC", "close", "event", "open", "sdk", "titanium", "window" ], "versions": [], "issuelinks": [], "assignee": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "updated": "2016-03-08T07:38:13.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 open & close events are not fired when touchEnabled is set to false, when the property is removed, it fires.\r\n\r\n{code:javascript}var w = Ti.UI.createWindow({\r\n\ttouchEnabled:false,\r\n\tbackgroundColor:'red'\r\n});\r\nw.addEventListener('open', function( ) {\r\n\talert('open');\r\n});\r\n\r\nw.addEventListener('close', function( ) {\r\n\talert('close');\r\n});\r\n\r\nw.open();\r\n\r\nsetTimeout(function( ) {\r\n\tw.close();\r\n}, 2500);\r\n{code}", "attachment": [], "flagged": false, "summary": "Window 'open' & 'close' events do not fire when touchEnabled == false", "creator": { "name": "gertjans", "key": "gertjans", "displayName": "Gertjan Smits", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "gertjans", "key": "gertjans", "displayName": "Gertjan Smits", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Ti SDK 3.3.0 RC", "comment": { "comments": [ { "id": "311070", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Hi,\r\n\r\nwhen you set touchEnabled: false, w will not register event any more, (include \"open\", \"close\", not just 'click' event). *All* the events will be gone.\r\nHere is a good explain may help you: http://developer.appcelerator.com/question/154004/what-is-touchenabled\r\n\r\nRegards\r\nShuo", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-06-26T12:30:51.000+0000", "updated": "2014-06-26T12:30:51.000+0000" }, { "id": "311071", "author": { "name": "gertjans", "key": "gertjans", "displayName": "Gertjan Smits", "active": true, "timeZone": "Europe/Berlin" }, "body": "Ok, that explains the behavior, but I assumed that only *touch* events are ignored, which I think should be the case here. An event like open or close has nothing to do with a touch to the view.", "updateAuthor": { "name": "gertjans", "key": "gertjans", "displayName": "Gertjan Smits", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-06-26T12:40:14.000+0000", "updated": "2014-06-26T12:40:14.000+0000" }, { "id": "311234", "author": { "name": "gertjans", "key": "gertjans", "displayName": "Gertjan Smits", "active": true, "timeZone": "Europe/Berlin" }, "body": "So there is no way to know if a window with touchEnabled set to false has been opened and closed?", "updateAuthor": { "name": "gertjans", "key": "gertjans", "displayName": "Gertjan Smits", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-06-27T06:57:13.000+0000", "updated": "2014-06-27T06:57:13.000+0000" }, { "id": "336372", "author": { "name": "gertjans", "key": "gertjans", "displayName": "Gertjan Smits", "active": true, "timeZone": "Europe/Berlin" }, "body": "I'm also not allowed to know when a WebView is loaded when it's touchEnabled property is false? :(\r\nThis issue really can not be closed...", "updateAuthor": { "name": "gertjans", "key": "gertjans", "displayName": "Gertjan Smits", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-12-15T15:40:32.000+0000", "updated": "2014-12-15T15:40:32.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }