Hey there, currently working on a project using THREE.js and I've run into an issue with my .mouseButtons functionality.
var controls = new THREE.OrbitControls( camera, renderer.domElement );
controls.target.set( 0, 25, 0 );
controls.mouseButtons = {ORBIT: THREE.MOUSE.LEFT, ZOOM: THREE.MOUSE.MIDDLE, PAN: THREE.MOUSE.RIGHT };
controls.update();
I've made sure to include THREE.js in my setup and even checked for THREE.MOUSE, but whenever I add that particular piece of code, the mouse buttons stop working altogether.
Any assistance would be greatly appreciated. Thanks!