diff --git a/iOS/Resources/main_ios.js b/iOS/Resources/main_ios.js index 37f7f31a8..e54685859 100644 --- a/iOS/Resources/main_ios.js +++ b/iOS/Resources/main_ios.js @@ -96,9 +96,12 @@ class ImageViewer { // Add the click listener for images window.onclick = function(event) { if (event.target.matches("img") && !event.target.classList.contains("nnw-nozoom")) { - // Without this, tapping an image wrapped in a link also navigates. - // - event.preventDefault(); + // An image inside a link navigates — it might be the only link to an + // important page. Zoom only standalone images. + // + if (event.target.closest("a[href]")) { + return; + } if (activeImageViewer && activeImageViewer.img === event.target) { cancelImageLoad(); } else {