Skip to content

Commit

Permalink
do not show full window image preview when right mouse button is used
Browse files Browse the repository at this point in the history
  • Loading branch information
AUTOMATIC1111 committed Jan 4, 2023
1 parent 99b67cf commit 5f4fa94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/imageviewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5f4fa94

Please sign in to comment.