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

Exception: Cannot read property 'updateScrollOffset' of null #1390

Open mbratukha opened 7 years ago

mbratukha commented 7 years ago

In the latest version of PhotoSwipe (4.1.2) I'm getting the following error: photoswipe_bug

It happens when I go through images with buttons 'previous' and 'next'.

Any ideas?

Windows 10 Google Chrome 59.0.3071.115

LeEnno commented 6 years ago

@orthes' fix should do the trick.