Fix issue with modal image viewer with low live_preview_refresh_period (#16981)

This commit is contained in:
w-e-w
2025-05-03 03:09:38 +08:00
committed by GitHub
parent ebbc56b4ec
commit 82bf9a3730
4 changed files with 5 additions and 1 deletions

View File

@@ -190,7 +190,7 @@ function requestProgress(id_task, progressbarContainer, gallery, atEnd, onProgre
livePreview.className = 'livePreview';
gallery.insertBefore(livePreview, gallery.firstElementChild);
}
updateModalImageIfVisible();
livePreview.appendChild(img);
if (livePreview.childElementCount > 2) {
livePreview.removeChild(livePreview.firstElementChild);