I am currently using three.js to generate a 360 panorama on my webpage.
I have a collection of thumbnails displayed on the page, and when a thumbnail is clicked, two actions take place. The correct texture is swapped into the panorama canvas (which is functioning properly), and a custombox modal containing the canvas is opened.
However, I am facing an issue where the original canvas element still remains in the DOM and is functional. Additionally, within the custombox, there seems to be a second canvas element that appears empty and lacks any functionality.
Could it be possible that I am misinterpreting the behavior of the canvas element, thereby making it impossible for it to display within a modal dialog box?