drag and drop operatons now dynamically generate a temporary top layer for high performance drag and drop. When completed, the top layer is removed. Also cleaned up a bit of drag and drop logic

This commit is contained in:
Eric Rowell
2012-12-30 23:14:23 -08:00
parent 36584a3ce2
commit 7ba40a6a68
7 changed files with 130 additions and 81 deletions

View File

@@ -31,7 +31,6 @@
this.frame.timeDiff = 0;
this.frame.lastTime = new Date().getTime();
Kinetic.Animation._addAnimation(this);
Kinetic.Animation._handleAnimation();
},
/**
* stop animation
@@ -59,6 +58,7 @@
Kinetic.Animation._addAnimation = function(anim) {
this.animations.push(anim);
this._handleAnimation();
};
Kinetic.Animation._removeAnimation = function(anim) {
var id = anim.id;