#1612·PhotoSwipe

无法在起始索引的 2 个索引内调用 goTo() 方法。

作者: dyllandry创建于 2019年3月13日更新于 2023年10月29日

I have image elements that use `goTo()` and an index to open PhotoSwipe. Clicking on the first image brings up PhotoSwipe and I can use the left and right arrows to go through every image. However, clicking on the second and third images brings up PhotoSwipe with no image, just the black background. Clicking on the third image results in no error, but the second image errors with:

内容来源: dimsemenov/PhotoSwipe