[LayaAir 1.0]发布微信后无法触发mouse_up事件
/** 初始化资源加载完成 */
private initF():void{
Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseHandler);
Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseHandler);
Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseHandler);
}
private mouseHandler(e:laya.events.Event):void
{
var touches: Array<any> = e.touches;
if (touches) {
for(let i=0;i<touches.length;i++){
let t =touches[i];
let nameIndex =e.touchId + "_" + i;
console.log(nameIndex+":"+e.type);
}
}
}
之能收到down和move!
private initF():void{
Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseHandler);
Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseHandler);
Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseHandler);
}
private mouseHandler(e:laya.events.Event):void
{
var touches: Array<any> = e.touches;
if (touches) {
for(let i=0;i<touches.length;i++){
let t =touches[i];
let nameIndex =e.touchId + "_" + i;
console.log(nameIndex+":"+e.type);
}
}
}
之能收到down和move!
没有找到相关结果
已邀请:
5 个回复
Luren_yi
赞同来自:
fftidus
赞同来自:
Aar0n
赞同来自:
fftidus
赞同来自:
fftidus
赞同来自: