mirror of
https://github.com/thelounge/thelounge
synced 2024-11-14 00:07:17 +00:00
Merge pull request #1512 from thelounge/xpaw/fix-black-previews
Fix image viewer turning black sometimes
This commit is contained in:
commit
a44eea61a1
1 changed files with 5 additions and 1 deletions
|
@ -161,7 +161,11 @@ function openImageViewer(link) {
|
|||
hasNextImage: nextImage.length > 0,
|
||||
}));
|
||||
|
||||
imageViewer.addClass("opened");
|
||||
// Turn off transitionend listener before opening the viewer,
|
||||
// which caused image viewer to become empty in rare cases
|
||||
imageViewer
|
||||
.off("transitionend")
|
||||
.addClass("opened");
|
||||
}
|
||||
|
||||
imageViewer.on("click", ".previous-image-btn", function() {
|
||||
|
|
Loading…
Reference in a new issue