fix fullscreen view showing wrong image on firefox

This commit is contained in:
AUTOMATIC 2023-01-05 00:36:10 +03:00
orang tua bc43293c64
melakukan b663ee2cff

Melihat File

@ -148,7 +148,7 @@ function showGalleryImage() {
if(e && e.parentElement.tagName == 'DIV'){
e.style.cursor='pointer'
e.style.userSelect='none'
e.addEventListener('click', function (evt) {
e.addEventListener('mousedown', function (evt) {
if(!opts.js_modal_lightbox) return;
modalZoomSet(gradioApp().getElementById('modalImage'), opts.js_modal_lightbox_initially_zoomed)
showModal(evt)