After setting up my JavaScript code to utilize Three.js OrbitControls, I thought I had everything in place:
<script>"OrbitControls.js"></script>
As well as:
var cameraControls;
cameraControls = new THREE.OrbitControls(camera, renderer.domElement);
There were no complaints during this setup, however, an error message surfaced...
Uncaught TypeError: Cannot read property 'LEFT' of undefined (21:20:28:855 | error, javascript) at public_html/OrbitControls.js:76
This error points to the OrbitControls document, specifically this line:
this.mouseButtons = { ORBIT: THREE.MOUSE.LEFT, ZOOM: THREE.MOUSE.MIDDLE, PAN: THREE.MOUSE.RIGHT };
I'm stuck on how to resolve this issue. Any help or guidance would be greatly appreciated!!