diff --git a/src/DragAndDrop.js b/src/DragAndDrop.js index 71061c82..ca91752a 100644 --- a/src/DragAndDrop.js +++ b/src/DragAndDrop.js @@ -64,13 +64,11 @@ this.moveTo(dd.topLayer); dd.topLayer.draw(); - // if we don't delay the prev parent redraw, dd will - // flicker on mobile devices - setTimeout(function() { - if(dd.prevParent) { - dd.prevParent.getLayer().draw(); - } - }, 0); + + if(dd.prevParent) { + dd.prevParent.getLayer().draw(); + } + } dd.anim.node = this.getLayer(); diff --git a/tests/js/unit/shapes/starTests.js b/tests/js/unit/shapes/starTests.js index 2617d71b..bf629382 100644 --- a/tests/js/unit/shapes/starTests.js +++ b/tests/js/unit/shapes/starTests.js @@ -30,7 +30,7 @@ Test.Modules.STAR = { layer.add(star); stage.add(layer); }, - 'add five point star with line join and shadow': function(containerId) { + '*add five point star with line join and shadow': function(containerId) { var stage = new Kinetic.Stage({ container: containerId, width: 578,