In my three.js project, I am faced with the challenge of updating the trackball controls upon window resize. I have found that updating the entire controls by calling the function with new input variables is necessary. Unfortunately, recreating the controls leads to a crash, and I want to avoid deleting the controls and creating new ones due to potential memory leaks. I came across a similar inquiry on How to update createControls's function input variables in JavaScript?, but I believe my question is more comprehensive.