Commit 5f4fa942 authored by AUTOMATIC's avatar AUTOMATIC

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

parent 99b67cff
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment