{ "id": "155188", "key": "AC-672", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2016-03-10T17:30:42.000+0000", "created": "2016-02-28T15:45:04.000+0000", "labels": [ "defect", "ios", "iphone" ], "versions": [ { "id": "17038", "name": "Appcelerator Studio 4.5.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "updated": "2016-03-10T17:30:42.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": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." } ], "description": "I am using a NavigationWindow for the iPhone / iPad version of my app. When I perform a \"swipe to close\" gesture on the app's base / home window the screen blocks and it's not possible do any other action.\r\n\r\nDisabling \"swipe to close\" with setSwipeToClose(false) does not fix the issue.", "attachment": [ { "id": "58440", "filename": "After swipe to close on Gray Window and click on Click here.png", "author": { "name": "saschbro", "key": "saschbro", "displayName": "Sascha Brose", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-03-06T20:51:59.000+0000", "size": 35919, "mimeType": "image/png" }, { "id": "58439", "filename": "test.zip", "author": { "name": "saschbro", "key": "saschbro", "displayName": "Sascha Brose", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-03-06T20:52:12.000+0000", "size": 8177437, "mimeType": "application/zip" } ], "flagged": false, "summary": "Swipe to close on app's home window hangs-up app", "creator": { "name": "saschbro", "key": "saschbro", "displayName": "Sascha Brose", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "saschbro", "key": "saschbro", "displayName": "Sascha Brose", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Appcelerator Studio 4.5.0.201602170831-17022016083241\r\nTitanium SDK 5.2.0.GA", "comment": { "comments": [ { "id": "378269", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello, \r\nI have tested that issue you reported. Swipe event is working as expected in home window using a NavigationWindow for the iPhone / iPad version of my app. You can take help [here|http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Window-property-swipeToClose].\r\n\r\n*Testing Environment:*\r\nAppcelerator Command-Line Interface, version 5.1.0\r\nTitanium SDK Version:5.2.0 GA\r\nPlatform: iOS\r\nSimulator: iphone 6/ iOS 8.0, iPad 2 / iOS 8.0\r\n\r\n\r\n.*Test Code:*\r\n{code}\r\n\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\n\r\n\r\nvar win2 = Titanium.UI.createWindow({\r\n\r\nbackgroundColor : 'gray',\r\n\r\ntitle : 'Gray Window'\r\n\r\n});\r\n\r\n\r\n\r\nvar win1 = Titanium.UI.iOS.createNavigationWindow({\r\n\r\nwindow : win2,\r\n\r\nswipeToClose : false\r\n\r\n});\r\n\r\n\r\n\r\nvar win3 = Titanium.UI.createWindow({\r\n\r\nbackgroundColor : 'blue',\r\n\r\ntitle : 'Blue Window',\r\n\r\n//swipeToClose : false\r\n\r\n});\r\n\r\n\r\n\r\nvar button = Titanium.UI.createButton({\r\n\r\ntitle : 'Click here',\r\n\r\ncolor : 'red',\r\n\r\n});\r\n\r\n\r\n\r\nwin2.add(button);\r\n\r\n\r\n\r\nbutton.addEventListener('click', function(e) {\r\n\r\nTi.API.info('Click event fired');\r\n\r\n\r\n\r\nwin1.openWindow(win3, {\r\n\r\nanimated : true\r\n\r\n});\r\n\r\n\r\n\r\n});\r\n\r\n\r\n\r\nvar button2 = Titanium.UI.createButton({\r\n\r\ntitle : 'Click here',\r\n\r\ncolor : 'red',\r\n\r\n});\r\n\r\n\r\n\r\nwin3.add(button2);\r\n\r\n\r\n\r\nbutton2.addEventListener('click', function(e) {\r\n\r\nalert('Click event fired');\r\n\r\n\r\n\r\n});\r\n\r\n\r\n\r\nwin1.open();\r\n\r\n\r\n{code}\r\n\r\n*Test Result:*\r\n{code}\r\n [INFO] : Click event fired\r\n\r\n{code}\r\n\r\n\r\n\r\n*Steps to Test.*\r\n\r\nFirstly you have to create a project then copy the sample code and run the project. After running the project so you can see a gray color window and click on “ *Click here*” then blue color window will open. After open blue color window, You will swipe and click on “*Click here*\"", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-03-01T10:12:15.000+0000", "updated": "2016-03-01T20:09:17.000+0000" }, { "id": "378811", "author": { "name": "saschbro", "key": "saschbro", "displayName": "Sascha Brose", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Aminul, thank you for your response. I tested the code you provided in a new project as suggested. But I am getting the same behaviour as in my project / app. I did the following actions:\r\n\r\n# Started app -> {{Gray Window}} is shown\r\n# Did a swipe to close on {{Gray Window}}\r\n# Clicked {{Click here}} on {{Gray Window}} -> Click event is fired but {{Blue Window}} does not show up and {{Click here}} is disabled", "updateAuthor": { "name": "saschbro", "key": "saschbro", "displayName": "Sascha Brose", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-03-05T09:35:45.000+0000", "updated": "2016-03-05T09:36:07.000+0000" }, { "id": "378843", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\nI have tested that issue you reported in my updated environment. It is working as expected. I provided my details below. Please provide your working environment details.\r\n\r\n *Test Environments:*\r\n{code}\r\nAppcelerator Studio, build: 4.5.0.201602170821\r\n Command-Line Interface, version 5.2.0\r\nOS. Version = 10.11.3\r\nNode.js\r\n Node.js Version = 0.12.7\r\n npm Version = 2.11.3\r\n\r\nTitanium SDKs 5.2.0.GA\r\nSimulator: iphone 6/ iOS 9.1\r\nJava Development Kit Version = 1.7.0_25\r\nXcode version 7.1.1\r\n{code}\r\n\r\n\r\n*Steps to Test.*\r\n\r\nFirstly you have to create a project and copy the sample code into your project and run the project. You can see a gray color window and click on “ Click here” it will open the blue color window. Here, You can swipe first and click on “Click here”. See the console to check the event fired.\r\n\r\n", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-03-06T09:23:36.000+0000", "updated": "2016-03-06T17:56:25.000+0000" }, { "id": "378866", "author": { "name": "saschbro", "key": "saschbro", "displayName": "Sascha Brose", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Mostafizur,\r\nplease notice that you have to do a swipe to close on the {{Gray Window}} and click on {{Click here}} afterwards to reproduce the issue.\r\n\r\nThe test case you described (open the {{Blue Window}} and swipe to close there) works for me too. But as I wrote, you have to do the swipe to close on the {{Gray Window}} even if you can't close this window like that, because it is the root window.\r\n\r\nI attached the project I tested the code you provided with (test.zip) as well as a screenshot after I did a swipe to close on the {{Gray Window}} and clicked on {{Click here}}. As you can see, {{Click here}} is disabled but the {{Blue Window}} isn't opened. \r\n\r\nHere are my environment details:\r\n{noformat}\r\nAppcelerator Studio, build: 4.5.0.201602170831\r\nCommand-Line Interface, version 5.0.6\r\nOS. Version = 10.11.3\r\nNode.js\r\n Node.js Version = 0.12.7\r\n npm Version = 2.11.3\r\n \r\nTitanium SDKs 5.2.0.GA\r\nSimulator: iphone 5s / iOS 9.2\r\nJava Development Kit Version = 1.7.0_79 / 1.8.0_40 (tested both)\r\nXcode version 7.2.1\r\n{noformat}", "updateAuthor": { "name": "saschbro", "key": "saschbro", "displayName": "Sascha Brose", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-03-06T20:48:28.000+0000", "updated": "2016-03-06T21:05:41.000+0000" }, { "id": "379010", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~saschbro], \r\n\r\nI have tested the issue that [~mrahman] provided. I have followed your steps. After the app opens I did a swipe to close gesture in the first window (gray window) and then I click \"click here\" to open the second window (blue window). Here blue window opens as expected. Now, in the code if I set \"swipeToClose : true\" in the gray window in NavigationWindow. I can reproduce the issue that you described. But, If I set \"swipeToClose : false\", The issue did not occur. \r\n\r\nHere is my test environment\r\n{code}\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.11.3\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 8589934592\r\n\r\nNode.js\r\n Node.js Version = 4.2.2\r\n npm Version = 2.14.7\r\n\r\nTitanium CLI\r\n CLI Version = 5.0.6\r\n\r\nTitanium SDK\r\n SDK Version = 5.2.0.GA\r\n Platform iPhone\r\n Simulator iPhone 6s Plus iOS SDK: 9.1\r\n{code}\r\n", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-03-07T16:39:31.000+0000", "updated": "2016-03-07T16:39:31.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }