I'm currently using Fancybox I'd like to disable image zoom with the pinch gesture on iPad.
I've tried using CSS touch-action:none;
and setting options in fancy box.
$("[data-fancybox]").fancybox({
clickContent : false,
});
I'd like the image to not respond to pinch zooming.
You can disable gestures by setting touch: false
, for example, this would disable for entire page:
$.fancybox.defaults.touch = false;
Or you can disable individually by adding data-options='{"touch" : false}'
to your link.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.