do not show full window image preview when right mouse button is used

This commit is contained in:
AUTOMATIC 2023-01-05 02:38:52 +03:00
parent 99b67cff0b
commit 5f4fa942b8

View File

@ -149,7 +149,7 @@ function showGalleryImage() {
e.style.cursor='pointer'
e.style.userSelect='none'
e.addEventListener('mousedown', function (evt) {
if(!opts.js_modal_lightbox) return;
if(!opts.js_modal_lightbox || evt.button != 0) return;
modalZoomSet(gradioApp().getElementById('modalImage'), opts.js_modal_lightbox_initially_zoomed)
showModal(evt)
}, true);