mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-01-04 13:55:06 +08:00
re-attach full screen zoom listeners
This commit is contained in:
parent
b26efff8c4
commit
c7cd2fda5a
@ -74,6 +74,9 @@ function check_gallery(id_gallery){
|
|||||||
if (prevSelectedIndex !== -1 && galleryButtons.length>prevSelectedIndex && !galleryBtnSelected) {
|
if (prevSelectedIndex !== -1 && galleryButtons.length>prevSelectedIndex && !galleryBtnSelected) {
|
||||||
//automatically re-open previously selected index (if exists)
|
//automatically re-open previously selected index (if exists)
|
||||||
galleryButtons[prevSelectedIndex].click();
|
galleryButtons[prevSelectedIndex].click();
|
||||||
|
setTimeout(function (){
|
||||||
|
showGalleryImage()
|
||||||
|
},100)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
galleryObservers[id_gallery].observe( gallery, { childList:true, subtree:false })
|
galleryObservers[id_gallery].observe( gallery, { childList:true, subtree:false })
|
||||||
|
Loading…
Reference in New Issue
Block a user