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

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -