mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
improve sprite transition hover state
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user