I have been working on a three.js project and have successfully implemented orbit controls. However, I am encountering an error where for every single pixel I move my mouse over, the following error is thrown:
Uncaught TypeError: b[c].call is not a function
at THREE.OrbitControls.dispatchEvent (three.min.js:343)
at THREE.OrbitControls.update (OrbitControls.js:230)
at handleMouseMoveRotate (OrbitControls.js:493)
at HTMLDocument.onMouseMove (OrbitControls.js:901)
Below is the snippet of my code:
function initial() {
// Code here
}
function animate() {
renderer.render(scene,camera);
requestAnimationFrame(animate);
}
initial();
I have tried searching online for a solution to this error without success. Can anyone provide guidance on how to resolve this issue?