From e6f6f6b185fcdf9802b52a90f46423d9751332d8 Mon Sep 17 00:00:00 2001 From: Uwe Oestermeier Date: Mon, 3 Feb 2020 10:06:01 +0100 Subject: [PATCH] Changed calling order --- lib/pixi/button.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) }