dimsemenov / Magnific-Popup

Light and responsive lightbox script with focus on performance.
http://dimsemenov.com/plugins/magnific-popup/
MIT License
11.39k stars 3.48k forks source link

goTo() method breaks gallery #1056

Closed somebeaver closed 1 year ago

somebeaver commented 6 years ago

Hi,

Please see this simplified example:

https://jsfiddle.net/0rsj46v5/5/

The goTo() method breaks the image counter ("1 of 3"), and the next/prev arrows don't work well anymore. Image 3 never seems to load, but it can be reached with the next/prev arrows sometimes.