viewerjs
viewerjs copied to clipboard
When a picture fails to load, viewer is not work forever
https://github.com/fengyuanchen/viewerjs/blob/465111e66e489cf3a68028fbb9a4da98a65c92de/src/js/methods.js#L1176
When a picture fails to load, if the next picture can be loaded normally, the code will not pass here. That is to say, after a picture fails to load, all pictures will not be displayed whether they are normal or not
Can you provide an online demo for debugging?
I have this issue running the viewer inline mode. I have to destroy and recreate the viewer to make it work for another image again
https://codesandbox.io/s/amazing-jackson-n1ig1v?file=/src/index.js
Here is a demo
Fixed it by adding: viewer.view();