[TIMOB-15272] iOS: Drag animation not working
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-09-20T21:15:52.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2013 Sprint 19, 2013 Sprint 19 API, Release 3.1.4, Release 3.2.0 |
Components | iOS |
Labels | module_animation, qe-testadded, regression, triage |
Reporter | Motiur Rahman |
Assignee | Vishal Duggal |
Created | 2013-09-17T09:36:06.000+0000 |
Updated | 2013-10-10T11:22:50.000+0000 |
Description
Drag animation not working in 3.1.1, 3.1.2 and 3.1.3 I'm using following code.
var win = Ti.UI.createWindow({
backgroundColor : "#fff"
});
var annoViewPosition;
var view = Ti.UI.createView({
borderWidth : 1,
borderColor : "#000000",
left : 0,
top : 0,
height: 100,
width: 100
});
win.add(view);
var lbltop;
var lblleft;
view.addEventListener('touchstart', function(e) {
annoLblPosition = {
top : e.source.top,
left : e.source.left
};
lbltop = e.y;
lblleft = e.x;
});
view.addEventListener('touchmove', function(e) {
annoLblPosition.top += e.y - lbltop;
annoLblPosition.left += e.x - lblleft;
e.source.animate({
top : annoLblPosition.top,
left : annoLblPosition.left,
duration : 5,
});
});
win.open();
Even I tried KitchenSink animation code that given in basic animation to drag a circle. That even not working properly in 3.1.1, 3.1.3 and 3.1.2.
I am also getting this issue in Titanium SDK 3.1.2 and 3.1.3 ...So I can't post update for iOS 7 because of this major issue.
All, note you can use the "Affects version" to indicate what version exhibits this behavior, not the labels.
This issue is coming in simple project I didn't try this in alloy...
Pull pending against master https://github.com/appcelerator/titanium_mobile/pull/4713
Backport to 3_1_X https://github.com/appcelerator/titanium_mobile/pull/4722
3.2.0 is not launched yet and I want to release my app. How do I get a new SDK?
Verified Fix with OSX: 10.8.5 Xcode:5.0 Appcelerator Studio: 3.2.0.201310091613 SDK:3.2.0.v20131009134844 acs:1.0.7 alloy:1.2.2 npm:1.3.2 titanium:3.2.0 titanium-code-processo:1.0.3 Device: iPod touch2 (viOS7)