In my web app, I have some thumbnails that open a lightbox when clicked. On mobile, the thumbnails are small and the user typically zooms in. The problem is that when they c
var zoomreset = function() { var viewport = document.querySelector("meta[name='viewport']"); viewport.content = "width=650, maximum-scale=0.635"; setTimeout(function() { viewport.content = "width=650, maximum-scale=1"; }, 350); } setTimeout(zoomreset, 150);
replace 650 with the width of your page