pec1985/TiDraggable

Delayed end event occurs on IOS device

Opened this issue · 0 comments

Hi first of all great module !

I am having an issue where the end event is fired with a slight delay (1-2 seconds) but only sometimes. This does not occur on the simulator which works perfectly.

 uCard.addEventListener('end', function(e)
 {
   Ti.API.info("end !!");
   //Reset pos workaround ! see issue #14
   e.source.setLeft(e.source.left);
   e.source.setTop(e.source.top);

   //Bounce back to a certain position on end   
        var a Ti.UI.createAnimation({top: 15, left: 15});
     e.source.animate(a);
 });

Could the issue be related to my workaround ?
Thanks