在laya中 已经阻止了滚轮事件,但stage还是能监听到,
let list:fairygui.GList = this.type2Con.getChild("n12").asList;
list.on(Laya.Event.MOUSE_WHEEL, this, this.OnClickLook);
this.type2Con.on(Laya.Event.MOUSE_WHEEL, this, this.OnClickLook);
this.gui.on(Laya.Event.MOUSE_WHEEL, this, this.OnClickLook);
private OnClickLook(e:Event)
{
e.stopPropagation();
console.log(e.target);
}
list.on(Laya.Event.MOUSE_WHEEL, this, this.OnClickLook);
this.type2Con.on(Laya.Event.MOUSE_WHEEL, this, this.OnClickLook);
this.gui.on(Laya.Event.MOUSE_WHEEL, this, this.OnClickLook);
private OnClickLook(e:Event)
{
e.stopPropagation();
console.log(e.target);
}
没有找到相关结果
已邀请:
2 个回复
神仙他兄弟
赞同来自:
this.type1Con.on(Laya.Event.MOUSE_DOWN, this, this.OnClickLook);
谷主
赞同来自: