After editing a value using dat.gui, it’s not possible to stop editing it when the trackball camera is activated. How can I fix that?
Author: Fantashit
1 thought on “mouseup not working using TrackballCamera and dat.gui”
For the record, @mrdoob is referring to passing the render context (renderer.domElement) to the controls call, like so:
controls = new THREE.TrackballControls( camera, renderer.domElement );
This tells the controls to only work when the mouse is over the renderer’s domElement (the canvas). This change fixed the problems I was having with dat.GUI while using TrackballControls.
For the record, @mrdoob is referring to passing the render context (renderer.domElement) to the controls call, like so:
This tells the controls to only work when the mouse is over the renderer’s domElement (the canvas). This change fixed the problems I was having with dat.GUI while using TrackballControls.