I've been working on setting up a 360 image background that rotates automatically and disabling most user interaction controls. However, I'm struggling with one issue – preventing any form of interaction from the user altogether. Whenever a user clicks on the spinning background image, it pauses for about 3 seconds before resuming rotation. I'm unsure if there is a specific function or method to prevent this behavior.
const panoramaImage = new PANOLENS.ImagePanorama("img/ship.jpeg");
const imageContainer = document.querySelector(".image-container");
const viewer = new PANOLENS.Viewer({
container: imageContainer,
autoRotate: true,
autoRotateSpeed: 0.3,
controlBar: false
});
viewer.OrbitControls.noRotate = true;
viewer.OrbitControls.noZoom = true;
viewer.OrbitControls.noPan = true;
viewer.add(panoramaImage);
viewer.onWindowResize();
This represents my JavaScript code.