Texonom
Texonom
/
Application
Application
/Network Science/ICT/Computer Network/Internet/WWW/Web Development/Web API/Web Media API/WebGL/WebGL Framework/Three js/Three.js Error/
Three.js Control not working
Search

Three.js Control not working

Created
Created
2020 Jul 8 1:40
Tags
Tags

Or change control after mounted

 
 
make sure that your container.append(renderer.domElement); is executed before initializing THREE.TrackballControls( camera, renderer.domElement );
 
three.js mousedown not working when trackball controls enabled
Trackball works well in my three.js program along with onMouseClick and onMouseUp event listeners. I enable Trackball using the line:- controls = new THREE.TrackballControls( scene01camera02 , DOM_container); But the onMouseDown event listener does not work. If I disable trackball (by commenting out the line of code shown above) and disable any other related code then onMouseDown works fine.
three.js mousedown not working when trackball controls enabled
https://stackoverflow.com/questions/18813481/three-js-mousedown-not-working-when-trackball-controls-enabled
three.js mousedown not working when trackball controls enabled
 
 
 

Recommendations

Texonom
Texonom
/
Application
Application
/Network Science/ICT/Computer Network/Internet/WWW/Web Development/Web API/Web Media API/WebGL/WebGL Framework/Three js/Three.js Error/
Three.js Control not working
Copyright Seonglae Cho