Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15272] iOS: Drag animation not working

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-09-20T21:15:52.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 19, 2013 Sprint 19 API, Release 3.1.4, Release 3.2.0
ComponentsiOS
Labelsmodule_animation, qe-testadded, regression, triage
ReporterMotiur Rahman
AssigneeVishal Duggal
Created2013-09-17T09:36:06.000+0000
Updated2013-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.

Comments

  1. Moiz Chhatriwala 2013-09-17

    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.
  2. Ingo Muschenetz 2013-09-17

    All, note you can use the "Affects version" to indicate what version exhibits this behavior, not the labels.
  3. Pooja Laad 2013-09-18

    This issue is coming in simple project I didn't try this in alloy...
  4. Vishal Duggal 2013-09-20

    Pull pending against master https://github.com/appcelerator/titanium_mobile/pull/4713
  5. Vishal Duggal 2013-09-20

    Backport to 3_1_X https://github.com/appcelerator/titanium_mobile/pull/4722
  6. Pooja Laad 2013-09-26

    3.2.0 is not launched yet and I want to release my app. How do I get a new SDK?
  7. Pragya Rastogi 2013-10-10

    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)

JSON Source