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
Post a Comment