{ "id": "61652", "key": "TIMOB-1020", "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": "11224", "name": "Release 1.4.0", "archived": true, "released": true, "releaseDate": "2010-07-16" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-04-15T02:41:38.000+0000", "created": "2011-04-15T02:41:38.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-02T18:59:44.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

http://helpdesk.appcelerator.net/tickets/2710

\n

code:

\n
\nvar win = Ti.UI.createWindow();\n\nvar tw = '100'; \nvar tl = '100'; \nvar circlez = Ti.UI.createView({ \nborderRadius:(tw/2),borderWidth:1,borderColor:'#336699', \nbackgroundColor:'#fffccc', \nwidth:tw, \nheight:tl, \nleft:5, \ntop:5 \n});\n\nvar labelz = Ti.UI.createLabel({ \ncolor:'#000000', \ntext:'Table z', \nfont:{fontSize:20,fontFamily:'Helvetica Neue'}, \ntextAlign:'center', \nwidth:'auto' \n});\n\ncirclez.add(labelz);\n\ncirclez.addEventListener('touchmove', function(e) \n{ \n//do soemthing \ncirclez.animate({center:{x:e.x,y:e.y}, duration:1}); \n}); \nwin.add(circlez);\nwin.open()\n
{html}", "attachment": [], "flagged": false, "summary": "animating view with label causes major flickering", "creator": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "124588", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Blain pointed out the issue with this when he fixed the\nbasic_animation.js test. We have to adjust the given coordinates\nback from the event, because they're relative to the view they're\ncontained in.

\n
\nvar win = Ti.UI.createWindow();\n\nvar tw = '100'; \nvar tl = '100'; \nvar circlez = Ti.UI.createView({ \nborderRadius:(tw/2),borderWidth:1,borderColor:'#336699', \nbackgroundColor:'#fffccc', \nwidth:tw, \nheight:tl, \nleft:5, \ntop:5 \n});\n\nvar labelz = Ti.UI.createLabel({ \ncolor:'#000000', \ntext:'Table z', \nfont:{fontSize:20,fontFamily:'Helvetica Neue'}, \ntextAlign:'center', \nwidth:'auto' \n});\n\ncirclez.add(labelz);\n\ncirclez.addEventListener('touchmove', function(e) \n{ \n//do soemthing \nTi.API.log(\"Coordinates: \"+e.x+\",\"+e.y);\n    var newX = e.x + circlez.animatedCenter.x - circlez.width/2; \n    var newY = e.y + circlez.animatedCenter.y - circlez.height/2; \n    Ti.API.log(\"New coordinates:\"+newX+\",\"+newY);\ncirclez.animate({center:{x:newX,y:newY}, duration:1}); \n}); \nwin.add(circlez);\nwin.open()\n
{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:41:38.000+0000", "updated": "2011-04-15T02:41:38.000+0000" }, { "id": "408396", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-02T18:59:44.000+0000", "updated": "2017-03-02T18:59:44.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }