I’m looking to incorporate Pinch Zoom functionality into my three.js panorama viewer.
After some research, it appears that TrackBallControls.js might have this feature built in?
I attempted to implement it, but encountered an error:
'Uncaught TypeError: undefined is not a function'
specifically on the line:
var controls = new THREE.TrackballControls( camera );
Since I am dynamically loading all Three.js scripts using Sid.js due to the nature of my system, could that be why it’s unable to locate THREE.TrackballControls?
Furthermore, is TrackBallControls the right solution for pinch and zoom functionality on mobile devices within a Three.js environment?