reverted async prevParent redraw for drag and drop because it has undesirable side effects. Need to find another solution for the flickering behavior on mobile devices

This commit is contained in:
Eric Rowell 2013-01-09 08:32:05 -08:00
parent ffaa108830
commit 48b85119f5
2 changed files with 6 additions and 8 deletions

View File

@ -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();

View File

@ -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,