Jānis Skarnelis
Jānis Skarnelis
It's so typical. This snippet was added to make Fancybox compatible with Shopify so that it works without writing any additional code. But you call this "a bug".
Yes I see. I'll adjust the selector so it doesn't affect the content. Sorry for the trouble.
It should be fixed in the latest release, sorry for the inconvenience.
Hi, Yes, @jurajkapsz is right, here's how to disable touch actions - ```js Fancybox.bind("[data-fancybox]", { Carousel : { gestures: false } }); ```
This warning doesn't seem to appear in v6, if you do encounter any problems, please let me know.
Hi, I copy/pasted your code and ... it disables zoom animation - https://jsfiddle.net/t57qLb89/
In that case, change click (and/or wheel) event: ``` Fancybox.bind('[data-fancybox]', { contentClick: false, wheel : false }); ``` https://jsfiddle.net/u8p79mgj/
In that case, you have to create your own click handler, like this: ```js Fancybox.bind('[data-fancybox]', { contentClick: false, Images: { Panzoom : { on: { click: (panzoom, event) => {...
I'm sorry, but I'm curious - why do you want to ruin the user experience? Or you want to allow the user to reduce motion, in which case you'd probably...
OK, I will think about it.