Skip to content

How to Use Model Viewer with Fancybox? #584

Answered by fancyapps
EyeOfEnigma asked this question in Q&A
Discussion options

You must be logged in to vote

Here is an example:

Fancybox.bind('[data-fancybox="gallery"]', {
  Carousel : {
    Panzoom : {
      touch : (panzoom, event) => {
        return event?.target.nodeName == "MODEL-VIEWER" ? false : true;
      }
    }
  }
});    

https://jsfiddle.net/4a2b0msw/

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@EyeOfEnigma
Comment options

@fancyapps
Comment options

Answer selected by EyeOfEnigma
@EyeOfEnigma
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants