Javascript Three.js:在移动设备上旋转对象

Javascript Three.js:在移动设备上旋转对象,javascript,animation,three.js,rotation,mobile-devices,Javascript,Animation,Three.js,Rotation,Mobile Devices,提到一个类似的问题,我试图让一个物体在智能手机/平板电脑上旋转。因为我是用mouseDown方法得到的,所以这不适用于移动设备上的触摸。有什么解决方案吗?尝试使用touchstart和touchend作为触摸屏的事件监听器 window.addEventListener("touchstart", handleStart, false); window.addEventListener("touchend", handleEnd, false); 尝试使用touchstart和touchend

提到一个类似的问题,我试图让一个物体在智能手机/平板电脑上旋转。因为我是用
mouseDown
方法得到的,所以这不适用于移动设备上的触摸。有什么解决方案吗?

尝试使用
touchstart
touchend
作为触摸屏的事件监听器

window.addEventListener("touchstart", handleStart, false);
window.addEventListener("touchend", handleEnd, false);

尝试使用
touchstart
touchend
作为触摸屏的事件监听器

window.addEventListener("touchstart", handleStart, false);
window.addEventListener("touchend", handleEnd, false);