-
I need this code so that I can drag the Hotspot with the mouse over the entire model, and at the same time so that the hotspot is on the surface of the model. And for this, you need the data-surface attribute. I use it when creating a hotspot. but to drag, I need to update. At the moment, the code is able to update the hotspot, but as soon as I start dragging it, the hotspot disappears immediately, but the html code remains unchanged and the element itself remains in html. Please help me figure out what the problem is.
Here is the code for creating and assigning a hotspot location:
I left the whole code just in case:
thank you in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 13 replies
-
Sorry, this looks like HTML/JS debugging, not model-viewer. If you can find a minimal repro of a model-viewer bug, I'll be happy to take a look, but I can't just debug your own website. |
Beta Was this translation helpful? Give feedback.
Okay, turned out to need a bit more than a one-liner, but our logic is quite a bit more robust now: #4867. I verified that it fixes your Glitch, and improved our automated test. Still has a funny CSS offset, but that shouldn't be hard for you to fix.