[LayaAir 2.0]请问在2.0版本的js中,如何获取mouse_move的鼠标坐标

img.on(Laya.Event.MOUSE_MOVE,this,this.onmousemove);
apesCtn.addChild(img);
........

onmousemove(e)
{
//console.log("e="+JSON.stringify(e));
for (var property in e) {
console.log(property+"="+e[property]);
}
console.log("========================");
/**这里是运行后,在img上拖动给出的属性,没有鼠标的xy的坐标
*
* _stoped=false
game.js:116 nativeEvent=[object TouchEvent]
game.js:116 touchId=0
game.js:116 type=mousemove
game.js:116 currentTarget=[object Object]
game.js:116 target=[object Object]
game.js:116 setTo=function (type,currentTarget,target){
this.type=type;
this.currentTarget=currentTarget;
this.target=target;
return this;
}
game.js:116 stopPropagation=function (){
this._stoped=true;
}
*/
}
已邀请:

Aar0n

赞同来自: coder

e.stageX;

该问题目前已经被锁定, 无法添加新回复

商务合作
商务合作