mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
Merge pull request #1017 from zilongshanren/fixButtonHoverSprite
if hoverSprite is null, don't process hover event
This commit is contained in:
@@ -448,7 +448,7 @@ var Button = cc.Class({
|
||||
},
|
||||
|
||||
_onMouseMoveIn: function () {
|
||||
if (this._pressed || !this.interactable || !this.enabledInHierarchy) return;
|
||||
if (!this.hoverSprite || this._pressed || !this.interactable || !this.enabledInHierarchy) return;
|
||||
|
||||
if (!this._hovered) {
|
||||
this._hovered = true;
|
||||
|
||||
Reference in New Issue
Block a user