{ "id": "132475", "key": "TIMOB-17256", "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": null, "resolutiondate": null, "created": "2014-07-01T19:27:14.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "qe-3.3.0", "reprod" ], "versions": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:04:20.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h5.Description\r\nDrag animation on a view lags on Android 4.1.X device and above.\r\nWhile view will follow where you move, it will trail behind, occasionally jumping around from one point to another.\r\n\r\nh5.Steps To Reproduce\r\n1. Copy the following code into your app.js file\r\n2. Run on device running Android 4.1.X or above \r\n3. Drag the view around the screen\r\n{code}\r\nvar window = Ti.UI.createWindow({ backgroundColor : \"#fff\" });\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\nvar lbltop;\r\nvar lblleft;\r\nview.addEventListener('touchstart', function(e) {\r\n annoLblPosition = { top : e.source.top, left : e.source.left };\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\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 lbltop = pt.y;\r\n lblleft = pt.x;\r\n e.source.animate({\r\n top : annoLblPosition.top,\r\n left : annoLblPosition.left,\r\n duration : 5,\r\n });\r\n});\r\nwindow.add(view);\r\nwindow.open();\r\n{code}\r\n\r\nh5.Expected Result\r\nView should animate smoothly\r\n\r\nh5.Actual Result\r\nView jumps from point", "attachment": [], "flagged": false, "summary": "Android: Animation: Drag animation lags on Android 4.1.X and above", "creator": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac 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)", "comment": { "comments": [ { "id": "423515", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am able to reproduce this issue with the following environment;\r\nPixel (7.1)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1 GA\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.2\r\nTi CLI 5.0.14\r\nAlloy 1.9.11\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131\r\n\r\nNOTE: The animation disappears from the screen and you have to restart the application to get it back.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-05T17:02:48.000+0000", "updated": "2017-07-05T17:02:48.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }