mirror of
https://github.com/konvajs/konva.git
synced 2026-01-09 11:34:38 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user