mirror of
https://github.com/konvajs/konva.git
synced 2025-11-18 17:21:36 +08:00
transition callback is now executed immediately after final node draw
This commit is contained in:
6
dist/kinetic-core.js
vendored
6
dist/kinetic-core.js
vendored
@@ -1882,12 +1882,12 @@ Kinetic.Node = Kinetic.Class.extend({
|
||||
a._removeAnimation(anim);
|
||||
that.transAnim = null;
|
||||
|
||||
anim.node.draw();
|
||||
|
||||
// callback
|
||||
if(config.callback !== undefined) {
|
||||
if(config.callback) {
|
||||
config.callback();
|
||||
}
|
||||
|
||||
anim.node.draw();
|
||||
};
|
||||
// auto start
|
||||
trans.start();
|
||||
|
||||
4
dist/kinetic-core.min.js
vendored
4
dist/kinetic-core.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -709,12 +709,12 @@ Kinetic.Node = Kinetic.Class.extend({
|
||||
a._removeAnimation(anim);
|
||||
that.transAnim = null;
|
||||
|
||||
anim.node.draw();
|
||||
|
||||
// callback
|
||||
if(config.callback !== undefined) {
|
||||
if(config.callback) {
|
||||
config.callback();
|
||||
}
|
||||
|
||||
anim.node.draw();
|
||||
};
|
||||
// auto start
|
||||
trans.start();
|
||||
|
||||
Reference in New Issue
Block a user