-
-
Notifications
You must be signed in to change notification settings - Fork 495
fix: didn't hide infospot when change panorama #243
Conversation
Nice. This was a pain point for me, which I solved with an agressive dispose method on scene change.
Your solution is better. |
Can we merge this please since so many have issues with this? |
Hi @claytonrothschild! I used your solution in my panorama changing function, it worked and hid the hoverText in the new panorama. However, it doesn't work for the popups (a div with a texte on white background) that comes when hovering an infoSpot.. function onButtonClick( targetPanorama ) { I am a beginner, I didn't get @xuanvan229's solution as I am not at all using infospot.js :/ Thank you. |
actually how can i use infospot.js while i'm using panolens.min.js ? For custom infospot, it seems necessary. Thanks |
Hi @RamenKebab, infopost.js has built to panolens.min.js. So If you want to use it in your project. You should change it in your panolens.min.js file or panolens.js You can find it here. |
@xuanvan229 This is divine. Your fix works like a charm. Thanks for guidance. |
@xuanvan229 However, it does not work in the Cardboard Mode. These stubborn hoverTexts still don't dissappear... |
I am merging this as this has been a real pain point. |
Welcome @flyandi glad to have a active maintainer on the project again! |
Hi. I got some bugs. When changing PanoramaImage. Some infospot didn't hide the text. I have fixed it. Please take a look.