mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
fix button color transition interactive=false
This commit is contained in:
@@ -103,6 +103,12 @@ var Button = cc.Class({
|
||||
|
||||
ctor: function () {
|
||||
this._resetState();
|
||||
|
||||
this._fromColor = null;
|
||||
this._toColor = null;
|
||||
this._time = 0;
|
||||
this._transitionFinished = true;
|
||||
|
||||
this._sprite = null;
|
||||
|
||||
if(CC_EDITOR) {
|
||||
@@ -114,10 +120,6 @@ var Button = cc.Class({
|
||||
this._pressed = false;
|
||||
this._hovered = false;
|
||||
|
||||
this._fromColor = null;
|
||||
this._toColor = null;
|
||||
this._time = 0;
|
||||
this._transitionFinished = true;
|
||||
},
|
||||
|
||||
editor: CC_EDITOR && {
|
||||
|
||||
Reference in New Issue
Block a user