javascript - Three.js: Rotate object on mobile devices -


referring similar question here, trying object rotated on smartphones/tablets. since got mousedown method, won't apply touching on mobile devices. there solution that?

try touchstart , touchend event listeners touch screens.

window.addeventlistener("touchstart", handlestart, false); window.addeventlistener("touchend", handleend, false); 

Comments

Popular posts from this blog

php - Auto increment employee ID -

php - isset function not working properly -

python - Evaluating the next line in a For Loop while in the current iteration -