Hey I am trying to create an animation when the user swipes down on an image and I'm having some serious performance issues on Android, the function works fine on IOS tho! I am getting this error on the debug panel
I/Choreographer(1378): Skipped 55 frames! The application may be doing too much work on its main thread.Below is the code I am using
razor.addEventListener('touchstart', function(e){ razor.image = 'assets/images/razor-active.png'; }); razor.addEventListener('swipe', function(e){ if(e.direction == "down"){ if(e.y >= 80){ razor.image = 'assets/images/razor-active.png'; setTimeout(function(){ camera.open(); }, 500); setTimeout(function(){ swipe.play(); }, 100); this.animate({ top:1200, duration:200 }); } } });Does anybody know what could be wrong or why it is so slow and choppy?
D