I’m using Photobrowser in an app that’s loaded in an iOS UIWebView. After the first two images, pinch-to-zoom stops working…no response. Tap-to-zoom still works.
Also, if I load the same app in iOS Safari, pinch-to-zoom works fine on all images.
Photobrowser swiper options are defaults.
var myPhotoBrowser = app.photoBrowser.create({
type:'popup',
theme: 'dark',
exposition:true,
backLinkText:'',
iconsColor: 'gray',
photos: assetUrls,
swiper: {
initialSlide: 0,
spaceBetween: 20,
speed: 300,
loop: false,
preloadImages: true,
navigation: {
nextEl: '.photo-browser-next',
prevEl: '.photo-browser-prev',
},
zoom: {
enabled: true,
maxRatio: 3,
minRatio: 1,
},
lazy: {
enabled: true,
},
},
on: {
open: function () {
$('.statusbar').css('background-color','black')
},
close: function () {
$('.statusbar').css('background-color','initial')
},
},
});
myPhotoBrowser.open();