{ "id": "123035", "key": "TIMOB-15942", "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": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2017-07-11T20:56:39.000+0000", "created": "2013-11-28T10:33:33.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "slow", "swipe", "tableView" ], "versions": [], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-07-11T20:56:39.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "I created a Window with two Views, One will always be visible and the other will be visible when swiped in right-side direction(Sliding Menu) by moving the main visible view right side 70% of the total width. My visible view consists a TableView with some data requires scrolling. After I add swipe event, TableView moving very slowly and stops. If I remove swipe, its working smooth.\r\n\r\nh4. Expected Result:\r\n - TableView scrolls smoothly\r\n\r\nh4. Actual Result:\r\n - TableView jerks, stops and moving and stops\r\n - When I remove swipe event, its working smoothly and got expected result.\r\n\r\nNote: My rows are custom and for sample I include the following code.\r\n\r\nh4. Sample Code:\r\n\r\n*index.xml*\r\n{code}\r\n\r\n\t\r\n\t\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\n*index.tss*\r\n{code}\r\n\".container\": {\r\n\tbackgroundColor:\"white\",\r\n\twidth: Ti.UI.FILL,\r\n\theight: Ti.UI.FILL\r\n}\r\n{code}\r\n\r\n*index.js*\r\n{code}\r\n$.index.addEventListener('swipe', function(e){\r\n\tif(e.direction == 'right'){\r\n\t\tvar anim = Ti.UI.createAnimation({\r\n\t\t\tleft: '70%',\r\n\t\t\tduration: 100\r\n\t\t});\r\n\t\t$.tbl.tableView.animate(anim);\r\n\t}else if(e.direction == 'left'){\r\n\t\tvar anim = Ti.UI.createAnimation({\r\n\t\t\tleft: 0,\r\n\t\t\tduration: 100\r\n\t\t});\r\n\t\t$.tbl.tableView.animate(anim);\r\n\t}\r\n});\r\n$.index.open();\r\n{code}\r\n\r\n*tableView.xml*\r\n{code}\r\n\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\n*tableView.tss*\r\n{code}\r\n'#tableView': {\r\n\tbackgroundColor: '#000',\r\n\twidth: '100%',\r\n\theight: '100%',\r\n\tzIndex: 2\r\n},\r\n'TableViewRow': {\r\n\tclassName: 'rows'\r\n}\r\n{code}\r\n\r\n*tableView.js*\r\n//empty file\r\n\r\n*slidingMenu.xml*\r\n{code}\r\n\r\n\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\n*slidingMenu.tss*\r\n{code}\r\n'#slidingMenu': {\r\n\tbackgroundColor: 'red',\r\n\twidth: '100%',\r\n\theight: '100%',\r\n\tzIndex: 0\r\n}\r\n{code}\r\n\r\n*slidingMenu.js*\r\n//empty file\r\n\r\n\r\nI included the state of the sample app image after swiped right and normal view. I think I provided all required. Please help me with this problem, thanks appcel.", "attachment": [ { "id": "44261", "filename": "afterSwipe.png", "author": { "name": "jaddict", "key": "jaddict", "displayName": "Gowtham", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-11-28T10:33:33.000+0000", "size": 246489, "mimeType": "image/png" }, { "id": "44260", "filename": "normal.png", "author": { "name": "jaddict", "key": "jaddict", "displayName": "Gowtham", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-11-28T10:33:33.000+0000", "size": 211605, "mimeType": "image/png" } ], "flagged": false, "summary": "TableView jerks with Window Swipe gesture", "creator": { "name": "jaddict", "key": "jaddict", "displayName": "Gowtham", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "jaddict", "key": "jaddict", "displayName": "Gowtham", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Am using 3.1.3.GA SDK, Alloys and 2.3.3 Android Emulator and tested in 4.0.4 Sony Xperia Android Mobile and 4.0 Karbonn A9+ Android Mobile.", "comment": { "comments": [ { "id": "282732", "author": { "name": "jliddell", "key": "jliddell", "displayName": "John Liddell", "active": true, "timeZone": "America/Chicago" }, "body": "This issue is a result of the tableviewrowproxy stopping the event from moving forward as it detects the swipe event. This issue will still exist in 3.2.0 as well. I also tried to report this issue in the past and was told it was a non issue, so i fixed it myself.", "updateAuthor": { "name": "jliddell", "key": "jliddell", "displayName": "John Liddell", "active": true, "timeZone": "America/Chicago" }, "created": "2013-12-05T22:45:22.000+0000", "updated": "2013-12-05T22:46:09.000+0000" }, { "id": "282791", "author": { "name": "jaddict", "key": "jaddict", "displayName": "Gowtham", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Hi John. How you solved it? I just kept button to open the sliding and removed swipe event. Is there any way to achieve it with swipe event. Thanks in advance.", "updateAuthor": { "name": "jaddict", "key": "jaddict", "displayName": "Gowtham", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-12-06T04:41:25.000+0000", "updated": "2013-12-06T04:41:25.000+0000" }, { "id": "282871", "author": { "name": "jliddell", "key": "jliddell", "displayName": "John Liddell", "active": true, "timeZone": "America/Chicago" }, "body": "Unfortunately i had to make my own modifications to the titanium source to solve it correctly.", "updateAuthor": { "name": "jliddell", "key": "jliddell", "displayName": "John Liddell", "active": true, "timeZone": "America/Chicago" }, "created": "2013-12-06T15:00:17.000+0000", "updated": "2013-12-06T15:00:17.000+0000" }, { "id": "282897", "author": { "name": "jaddict", "key": "jaddict", "displayName": "Gowtham", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Oh Great John. May I know how and is it possible to get some ideas or snippets to make it work for me?", "updateAuthor": { "name": "jaddict", "key": "jaddict", "displayName": "Gowtham", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-12-06T17:18:46.000+0000", "updated": "2013-12-06T17:18:46.000+0000" }, { "id": "283356", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hi Gowtham,\n\nI was able to reproduce your issue, but found that the table does not jerk if the swipe event is not on the window.\nCould you consider creating a view and moving everything inside of it? Then the swipe event will be on the view and not the window.\n\nPlease let me know if you have any questions.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-10T00:43:42.000+0000", "updated": "2013-12-10T00:43:42.000+0000" }, { "id": "283512", "author": { "name": "jaddict", "key": "jaddict", "displayName": "Gowtham", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Thank you Weiber, This is my new code,\r\n*index.xml*\r\n{code}\r\n\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\r\n\r\n{code}\r\n*index.js*\r\n{code}\r\n$.test.addEventListener('swipe', function(e){\r\n\tif(e.direction == 'up' || e.direction == 'down')return true;\r\n\tif(e.direction == 'right'){\r\n\t\tvar anim = Ti.UI.createAnimation({\r\n\t\t\tleft: '70%',\r\n\t\t\tduration: 100\r\n\t\t});\r\n\t\t$.tbl.tableView.animate(anim);\r\n\t}else if(e.direction == 'left'){\r\n\t\tvar anim = Ti.UI.createAnimation({\r\n\t\t\tleft: 0,\r\n\t\t\tduration: 100\r\n\t\t});\r\n\t\t$.tbl.tableView.animate(anim);\r\n\t}\r\n});\r\n\r\n$.index.open();\r\n{code}\r\n\r\nEven now TableView moving very slow and not smoother. Thank you.", "updateAuthor": { "name": "jaddict", "key": "jaddict", "displayName": "Gowtham", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-12-10T06:45:21.000+0000", "updated": "2013-12-10T07:19:25.000+0000" }, { "id": "283591", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Gowtham,\n\nSince we were able to reproduce the issue and do not have an immediate solution for you, I am escalating this ticket to a bug, to be reviewed further. We will let you know when we have any updates on this issue.\nThanks!", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-10T19:21:22.000+0000", "updated": "2013-12-10T19:21:22.000+0000" }, { "id": "423949", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Please refer to TIMOB-17539.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-11T20:56:39.000+0000", "updated": "2017-07-11T20:56:39.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }