{ "id": "122749", "key": "TIMOB-15776", "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": [ { "id": "15931", "description": "2014 Sprint 05", "name": "2014 Sprint 05", "archived": true, "released": true, "releaseDate": "2014-03-14" }, { "id": "15932", "description": "2014 Sprint 05 API", "name": "2014 Sprint 05 API", "archived": true, "released": true, "releaseDate": "2014-03-14" }, { "id": "16270", "description": "2014 Sprint 10", "name": "2014 Sprint 10", "archived": true, "released": true, "releaseDate": "2014-05-22" }, { "id": "16271", "description": "2014 Sprint 10 SDK", "name": "2014 Sprint 10 SDK", "archived": true, "released": true, "releaseDate": "2014-05-22" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-06-20T18:31:27.000+0000", "created": "2013-11-21T09:54:23.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "module_animation", "qe-3.2.0", "qe-closed-3.3.0", "qe-testadded", "triage" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [ { "id": "34225", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "124303", "key": "AC-2331", "fields": { "summary": "Android: Animation: drag does not work well", "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" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "36285", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "128448", "key": "TIMOB-16772", "fields": { "summary": "Android: Drag animation not working", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-07-01T19:29:41.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": "Android: Animation: Drag animation does not work on the view.\r\nThis issue is reproducible on SDK: 3.1.3.GA and app crashes on SDK:3.1.2.GA\r\n\r\nSteps to reproduce:\r\n1. Run the below app.\r\n{code}\r\n var _window = Ti.UI.createWindow({\r\n backgroundColor : \"#fff\"\r\n});\r\nvar annoViewPosition;\r\nvar view = Ti.UI.createView({\r\n borderWidth : 1,\r\n borderColor : \"#000000\",\r\n left : 0,\r\n top : 0,\r\n height: 100,\r\n width: 100\r\n});\r\n_window.add(view);\r\n \r\nvar lbltop;\r\nvar lblleft;\r\nview.addEventListener('touchstart', function(e) {\r\n annoLblPosition = {\r\n top : e.source.top,\r\n left : e.source.left\r\n };\r\n pt = view.convertPointToView({ x:e.x, y:e.y }, _window);\r\n lbltop = pt.y;\r\n lblleft = pt.x;\r\n});\r\n \r\nview.addEventListener('touchmove', function(e) {\r\n pt = view.convertPointToView({ x:e.x, y:e.y }, _window);\r\n annoLblPosition.top += pt.y - lbltop;\r\n annoLblPosition.left += pt.x - lblleft;\r\n \r\n lbltop = pt.y;\r\n lblleft = pt.x;\r\n \r\n // This will also work\r\n //e.source.top = annoLblPosition.top;\r\n //e.source.left = annoLblPosition.left;\r\n \r\n e.source.animate({\r\n top : annoLblPosition.top,\r\n left : annoLblPosition.left,\r\n duration : 5,\r\n });\r\n \r\n});\r\n_window.open();\r\n{code}\r\n\r\n2. Drag Square on screen.\r\n\r\nExpected:\r\nSquare can be moved to any position on the screen.\r\n\r\nActual:\r\nSquare does not move.", "attachment": [], "flagged": false, "summary": "Android: Animation: Drag animation does not work on the view", "creator": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Device : Google Nexus 7, Android Version: 4.2.1\r\nSDK: 3.2.0.v20131120142443\r\nCLI version : 3.2.0-alpha\r\nOS : MAC OSX 10.9\r\nAlloy : 1.3.0\r\nAppcelerator Studio, build: 3.2.0.201311200357\r\nXCode : 5.0.2", "closedSprints": [ { "id": 50, "state": "closed", "name": "2014 Sprint 09 Tooling", "startDate": "2014-04-28T15:43:24.381Z", "endDate": "2014-05-10T03:44:00.000Z", "completeDate": "2014-05-12T13:36:16.254Z", "originBoardId": 113 }, { "id": 104, "state": "closed", "name": "2014 Sprint 10 SDK", "startDate": "2014-05-12T16:00:00.000Z", "endDate": "2014-05-24T00:00:00.000Z", "completeDate": "2014-05-27T18:11:47.424Z", "originBoardId": 114 }, { "id": 105, "state": "closed", "name": "2014 Sprint 11 SDK", "startDate": "2014-05-27T21:43:32.338Z", "endDate": "2014-06-07T00:00:00.000Z", "completeDate": "2014-06-09T21:36:37.587Z", "originBoardId": 114 }, { "id": 121, "state": "closed", "name": "2014 Sprint 12 SDK", "startDate": "2014-06-09T21:51:17.043Z", "endDate": "2014-06-21T00:00:00.000Z", "completeDate": "2014-06-23T16:52:29.621Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "293545", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Added code to update the layout properties after the animation is done.\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/5357", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-02-18T17:47:26.000+0000", "updated": "2014-02-18T17:47:26.000+0000" }, { "id": "293549", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Sample code\r\n{code}\r\n var _window = Ti.UI.createWindow({\r\n\t backgroundColor : \"#fff\"\r\n\t});\r\n\tvar annoViewPosition;\r\n\tvar view = Ti.UI.createView({\r\n\t borderWidth : 1,\r\n\t borderColor : \"#000000\",\r\n\t left : 0,\r\n\t top : 0,\r\n\t height: 100,\r\n\t width: 100\r\n\t});\r\n\t_window.add(view);\r\n\t \r\n\tvar lbltop;\r\n\tvar lblleft;\r\n\tview.addEventListener('touchstart', function(e) {\r\n\t annoLblPosition = {\r\n\t top : e.source.top,\r\n\t left : e.source.left\r\n\t };\r\n\t pt = view.convertPointToView({ x:e.x, y:e.y }, _window);\r\n\t lbltop = pt.y;\r\n\t lblleft = pt.x;\r\n\t});\r\n\t \r\n\tview.addEventListener('touchmove', function(e) {\r\n\t\tpt = view.convertPointToView({ x:e.x, y:e.y }, _window);\r\n\t annoLblPosition.top += pt.y - lbltop;\r\n\t annoLblPosition.left += pt.x - lblleft;\r\n\t \r\n\t lbltop = pt.y;\r\n\t lblleft = pt.x;\r\n\t \r\n\t // This will also work\r\n\t //e.source.top = annoLblPosition.top;\r\n\t //e.source.left = annoLblPosition.left;\r\n\r\n\t e.source.animate({\r\n\t top : annoLblPosition.top,\r\n\t left : annoLblPosition.left,\r\n\t duration : 5,\r\n\t });\r\n\t \r\n\t});\r\n\t_window.open();\r\n{code}", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-18T18:03:29.000+0000", "updated": "2014-02-20T23:44:42.000+0000" }, { "id": "298484", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "3_2_X Backport : https://github.com/appcelerator/titanium_mobile/pull/5514", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-24T21:10:25.000+0000", "updated": "2014-03-24T21:10:25.000+0000" }, { "id": "298531", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Issue is reproducible using SDK:3.2.3 where as its working fine on Master's SDK:3.3.0\r\n\r\nEnvironment used:\r\nDevice : Google Nexus 5, Android Version: 4.4.2\r\nDevice: LG-P970, Android version: 4.0.4\r\nSDK: 3.2.3.v20140324164913, 3.3.0.v20140324160921\r\nCLI version : 3.2.1\r\nOS : MAC OSX 10.9.2\r\nAlloy: 1.3.1\r\nACS: 1.0.14\r\nnpm:1.3.2\r\nAppcelerator Studio, build: 3.2.3.201403190645\r\ntitanium-code-processor: 1.1.0\r\nXCode : 5.1 ", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-03-25T06:01:30.000+0000", "updated": "2014-03-25T06:01:30.000+0000" }, { "id": "298610", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This issue seems fixed on master. Placing the `merge-3.2.3` label to track the existence of the bug on 3_2_X branch.", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-25T17:39:01.000+0000", "updated": "2014-03-25T17:39:01.000+0000" }, { "id": "301387", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the issue with test environment:\r\n\r\nAppc-Studio:3.2.3.201404162038\r\nsdk:3.3.0.v20140417173316\r\nacs:1.0.14\r\nalloy:1.3.1\r\nnpm:1.3.2\r\ntitanium:3.2.3-beta\r\ntitanium-code-processor:1.1.1-beta1\r\nxCODE:5.1.1\r\nDevice:Nexus5(v4.4.2),Iphone5(v7.1),Nexu7(v4.4.2)\r\n\r\nDrag Animation works but it is not as smooth as in iOS.\r\nAfter dragging a little the box starts fluctuating and disappears.\r\nHence Reopening the issue.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-18T08:47:04.000+0000", "updated": "2014-04-18T08:47:04.000+0000" }, { "id": "303293", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Which code was run? Was it the one from my comment or the one in the ticket. The code in the ticket doesn't convert the location relative to the view and won't work.", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-05-02T14:59:12.000+0000", "updated": "2014-05-02T14:59:12.000+0000" }, { "id": "303352", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Updated test case. It works fine for me. Resolving it.", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-02T21:45:47.000+0000", "updated": "2014-05-02T21:45:47.000+0000" }, { "id": "303614", "author": { "name": "prastogi", "key": "prastogi", "displayName": "Pragya Rastogi", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Verified the fix on:\r\nOSX: 10.9.2\r\nXcode: 5.1.1\r\nStudio - 3.3.0.201405011408\r\nSDK -3.3.0.v20140505115416\r\nacs-1.0.14\r\nalloy-1.4.0-dev\r\nnpm-1.3.2\r\ntitanium-3.3.0-dev\r\ntitanium-code-processor-1.1.1\r\nDevice: HTC Desire V( 4.0.3) & iPhone 5 (7.1), LG-P970 (v4.0.4), Nexus 4 (v4.1.2), Nexus 5 (v4.4.2)\r\n\r\nAnimation works smoothly on HTC Desire V( 4.0.3), iPhone 5 (7.1) and LG-P970 (v4.0.4) devices but does not work smoothly (After dragging a little the box starts fluctuating and disappears) on Nexus 4 (v4.1.2), Nexus 5 (v4.4.2) and Nexus 7(v4.3) device. Hence reopening this issue.", "updateAuthor": { "name": "prastogi", "key": "prastogi", "displayName": "Pragya Rastogi", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-05-06T07:14:36.000+0000", "updated": "2014-05-06T11:19:42.000+0000" }, { "id": "304024", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Tried on Galaxy note (Android 4.3), I can't reproduce the issue. \r\nI possibility I can think of is the ti.ui.defaultunit not being pixel as the values returned from touchmove and touchstart are pixels and top and left of the view will be in default units.\r\n\r\n Try setting ti.ui.defaultunit to pixel in app property file", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-05-08T16:00:55.000+0000", "updated": "2014-05-08T16:00:55.000+0000" }, { "id": "305017", "author": { "name": "prastogi", "key": "prastogi", "displayName": "Pragya Rastogi", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Verified the fix using:\r\nOSX: 10.9.2\r\nXcode: 5.1.1\r\nStudio - 3.3.0.201405121247\r\nSDK -3.3.0.v20140514163013\r\nacs-1.0.14\r\nalloy-1.4.0-alpha\r\nnpm-1.3.2\r\ntitanium-3.3.0-dev\r\ntitanium-code-processor-1.1.1\r\nDevice: Nexus 5 (4.4.2)\r\n\r\nView drag animation works as expected using px in \"ti.ui.defaultunit\" property", "updateAuthor": { "name": "prastogi", "key": "prastogi", "displayName": "Pragya Rastogi", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-05-15T09:00:59.000+0000", "updated": "2014-05-15T09:00:59.000+0000" }, { "id": "307802", "author": { "name": "prastogi", "key": "prastogi", "displayName": "Pragya Rastogi", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Drag animation again fails on SDK: 3.3.0.v20140605150555 but works fine on previous sdk: 3.3.0.v20140514163013\r\n\r\nHence reopening for the build:\r\nOSX: 10.9.3\r\nXcode: 5.1.1\r\nAppcelerator Studio: 3.3.0.201405271647\r\nSDK -3.3.0.v20140605150555\r\nacs-1.0.14\r\nalloy-1.4.0-beta\r\nnpm-1.3.2\r\ntitanium-3.3.0-beta2\r\ntitanium-code-processor-1.1.1\r\nDevice: Nexus 7 (4.3)", "updateAuthor": { "name": "prastogi", "key": "prastogi", "displayName": "Pragya Rastogi", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-06-06T09:38:58.000+0000", "updated": "2014-06-06T09:38:58.000+0000" }, { "id": "308120", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "My observations with environment below with ti.ui.default unit set to \"px\" in tiapp.xml are:\r\n1. On android 4.0.4 & 2.3.7:\r\nAnimation is smooth, works as expected.\r\n\r\n2. On android 4.1.1, 4.2.2, 4.3, 4.4.2:\r\nAnimation is laggy, does not move with the touch as expected & lags behind. But, the view does not disappear or anything.\r\n\r\nEnvironment:\r\nAppc Studio : 3.3.0.201406061445\r\nTi SDK : 3.3.0.v20140609115713 \r\nMac OSX : 10.8.5\r\nAlloy : 1.4.0-beta2\r\nCLI - 3.3.0-beta3\r\nCode Processor: 1.1.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-09T22:02:59.000+0000", "updated": "2014-06-09T22:02:59.000+0000" }, { "id": "311827", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested on:\r\nMac OSX 10.9.3\r\nAppcelerator Studio, build: 3.3.0.201406271159\r\nTitanium SDK, build: 3.3.0.v20140627202512\r\nTitanium CLI, build: 3.3.0-rc4\r\nAlloy: 1.4.0-rc3\r\nAndroid Device: Nexus 7 (4.2)\r\n\r\nDrag animation on Android 4.0.X and below is smooth and works as expected.\r\nDrag animation on Android 4.1.X and above is laggy, but works as expected.\r\nWhile the view does animate, it trails behind my finger significantly and occasionally jumps from one point to another.", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-01T17:21:01.000+0000", "updated": "2014-07-01T17:21:01.000+0000" }, { "id": "311880", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-01T19:29:20.000+0000", "updated": "2014-07-01T19:29:20.000+0000" } ], "maxResults": 18, "total": 18, "startAt": 0 } } }