Open magnusheino opened 9 years ago
Would it be possible to first call imageLoadComplete, then null the reference?
I think it won't hurt. Yoy may send PR for items-controller.js if you want. Or I'll update it by myself in next update.
Anyway, you can access image directly via gallery.currItem.container.lastChild
.
For me this is still actual issue, may I send PR?
Hi.
I had this code working with 4.0:
Now images were loaded and resized no matter what size they had (and they have all different sizes).
Introduced in this commit for 4.0.8 item.img is nulled before imageLoadComplete is called...
https://github.com/dimsemenov/PhotoSwipe/commit/0c277a72dc4b203854c4fa926f5cf574f3c2de0a#diff-9d2f0c76c6ba44a976558eb4e8d40d2aL382
Is this indented behaviour ? Would it be possible to first call imageLoadComplete, then null the reference?