Commit 5f4fa942 authored by AUTOMATIC's avatar AUTOMATIC
Browse files

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

parent 99b67cff
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);