请问下如图有A,B,C三个节点,BC是A的子节点,我设置了对A的鼠标离开的监听,可是当鼠标进入B区域的时候,这个监听就触发了
B是A的子节点,也会触发离开事件吗,这是系统的设定还是我写的有问题,请告知。。
//鼠标离开
this.node.on(cc.Node.EventType.MOUSE_LEAVE, function (event) {
event.stopPropagation();
console.log(“leave”);
console.log(event.target);
//改变鼠标样式
this.mouseLeaveStyleChange();
//隐藏展示信息
this.spanNewShowInfoDelete();
}, this);
