const el = document.querySelector('iframe');
new PinchZoom(el as any, { minZoom: 1, maxZoom: 4 });
But it doesn’t do anything.
I’ve also tried div [innerHTML] instead of iframe, then it kind of works, but scrolling down the page then stops working, and also innerhtml is not a good option as it gets my css styles from the page.
By default it expects to zoom one of the img , picture or canvas element. If you want to make zoom on some other custom element, then just add swiper-zoom-target class to this element
I get it now how it works, but my iframe is 100% width and 100% height of the page and also is scrollable inside - that’s why it doesn’t work. If i give some padding over iframe then I can pinch on that area, but not over an iframe itself.