How to Use Model Viewer with Fancybox? #584
-
Hello, I'm having an issue using googles 3d model-viewer with fancybox. I placed my model viewer in a div and used data-src to pull it into fancybox. The model viewer works correctly but the click and drag to move the camera around the object causes fancybox to slide left/right/up/down. I need to be able to use the model viewer like the fancybox google map viewer. When displaying a map you can drag the map in all directions and fancybox does not try to move to the next slide or close. I'm wondering how I can get this behavior with the model viewer. This also needs to be achieved with keeping the swipe left/right and up/down functionality as the gallery has other content and images. It would be nice to detect if the click and drag is on the content vs on the outside of the content. Any idea how I can do this with the latest fancybox? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi, Can you show some demo with your current progress? It would be great if you use any code playground like jsfiddle, codepen, codesandbox, stackblitz, etc. You can also easily fork any demo found in the documentation. |
Beta Was this translation helpful? Give feedback.
Here is an example:
https://jsfiddle.net/4a2b0msw/