diff --git a/lib/pixi/button.js b/lib/pixi/button.js index 915db89..72fe062 100644 --- a/lib/pixi/button.js +++ b/lib/pixi/button.js @@ -288,10 +288,6 @@ export default class Button extends PIXI.Container { this.opts.beforeAction.call(this, e, this) } - if (this.opts.action) { - this.opts.action.call(this, e, this) - } - TweenLite.to([this.button, this.content], this.theme.fast, { alpha: 0.83, overwrite: 'none' @@ -301,6 +297,10 @@ export default class Button extends PIXI.Container { this.active = !this.active } + if (this.opts.action) { + this.opts.action.call(this, e, this) + } + if (this.opts.afterAction) { this.opts.afterAction.call(this, e, this) }