improve sprite transition hover state

This commit is contained in:
zilongshanren
2016-10-08 09:42:36 +08:00
parent c5cde3de2a
commit 551802ba26
+1
View File
@@ -539,6 +539,7 @@ var Button = cc.Class({
_onMouseMoveIn: function () {
if (this._pressed || !this.interactable || !this.enabledInHierarchy) return;
if (this.transition === Transition.SPRITE && !this.hoverSprite) return;
if (!this._hovered) {
this._hovered = true;