fix fullscreen view showing wrong image on firefox

This commit is contained in:
AUTOMATIC 2023-01-05 00:36:10 +03:00
parent bc43293c64
commit b663ee2cff
1 changed files with 1 additions and 1 deletions

View 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)