[]touches一直为undefined

Laya.stage.on(Laya.Event.MOUSE_DOWN, this, onCtrlMoveRockerTouchDown);

......
 

function onCtrlMoveRockerTouchDown(e) {
    console.log("onCtrlMoveRockerTouchDown()");

    var touches = e.touches;

    if(touches) {
    ...取出前两个touch进行计算
    }
}
 
请问为什么我的touches一直都是undefined
已邀请:

Laya_XS

赞同来自:

你先参考下官网的示例对比下你自己的代码,中午回复你的问题是什么原因导致的。

要回复问题请先

商务合作
商务合作