[AC-2054] TiSDK 3.2.0 and later: The animation transform does not work.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2014-02-17T07:46:44.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | Titanium3.2.0.GA-SDK, android, animation, defect, trunsform |
Reporter | Ovcharenko |
Assignee | Ritu Agrawal |
Created | 2014-02-11T12:48:36.000+0000 |
Updated | 2016-03-08T07:41:00.000+0000 |
Description
The code:
{quote}
library.method= function(param1,param2, param3)\{
...
var objectContainer=Ti.UI.createView(\{
width:imageBlob.width+250,
height:imageBlob.height+250
});
var object=Ti.UI.createImageView(\{
image:images[0],
touchEnabled:false,
rotateAngel:0,
lastRotateAngel:0,
width:imageBlob.width,
height:imageBlob.height
});
objectContainer.add(object);
...
objectContainer.touchend= function(e)\{
...
var transform=Ti.UI.create2DMatrix().rotate(object.lastRotateAngel,rotateAngel);
object.animate(\{transform: transform, duration: 300},function()\{
object.lastRotateAngel = rotateAngel;
...
});
}
objectContainer.addEventListener("twofingertap", objectContainer.touchend);
objectContainer.addEventListener("touchcancel", objectContainer.touchend);
objectContainer.addEventListener("touchend", objectContainer.touchend);
...
return objectContainer;
}
{quote}
The animation transform does not work. Image does not rotate. For Titanium SDK 3.1.3 and earlier animation is fine.
Please provide a simple and runnable test case to reproduce the issue.
Resolving this ticket as we do not have enough information to diagnose this ticket any further. We would be happy to reopen this ticket once we have a simple runnable test case.