https://i.sstatic.net/vQdxh.png I've been working on implementing camera navigation functionality in threejs using THREE.OrbitControls. Despite following a tutorial, I'm struggling to get it to function correctly.
You can find my code on jsfiddle here: https://jsfiddle.net/Matty1/uc671jbL/18/
The issue seems to be located at line 18/19 of the javascript:
const controls = new THREE.OrbitControls( camera, renderer.domElement );
controls.update();
If anyone has any advice, I would greatly appreciate it.