mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 06:55:17 +08:00
transition callback is now executed immediately after final node draw
This commit is contained in:
parent
75b20573cd
commit
b7ac415ea6
8
dist/kinetic-core.js
vendored
8
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();
|
||||
|
Loading…
Reference in New Issue
Block a user