dimsemenov / PhotoSwipe

JavaScript image gallery for mobile and desktop, modular, framework independent
http://photoswipe.com
MIT License
24.18k stars 3.31k forks source link

Photos not opening on Safari iOS 17 #2072

Closed anergit closed 1 year ago

anergit commented 1 year ago

I've implemented PhotoSwipe and it works great, but not in Safari on my iOS 17-device. When tap'ing the 'child', nothing happens.

iOS version: 17.0.3 Device: iPhone 14 PhotoSwipe version: 5.4.2 Browser: Safari Browser agent: "Mozilla/5.0 (iPhone; CPU iPhone OS 17_0_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0.1 Mobile/15E148 Safari/604.1"

Implementation:

Children:

... I have tested my code with the following browsers and seen zero issues: - Safari on iPadOS Version 16.2 ("Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.2 Safari/605.1.15") - Safari on macOS Version 16.4 (18615.1.26.110.1) - Firefox Developer Edition on macOS 119.0b7 (64-bit) - Chrome on Android 10 ("Mozilla/5.0 (Linux; Android 10; Android SDK built for arm64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Mobile Safari/537.36") I've tried using a, div, span, etc. as children, yet the PhotoSwipe is never triggered Please let me know if you need further information or testing on my part. Thanks!
anergit commented 1 year ago

After spending hours trying to resolve the issue, PhotoSwipe suddenly works on Mobile Safari on iOS 17.0.3.

I have no clue what the issue was, other than a cache on my device. Sorry for the potential waste of time.