mirror of
https://github.com/konvajs/konva.git
synced 2025-05-02 20:05:08 +08:00
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:
parent
ffaa108830
commit
48b85119f5
@ -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();
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user