mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-12-29 02:45:05 +08:00
do not show full window image preview when right mouse button is used
This commit is contained in:
parent
99b67cff0b
commit
5f4fa942b8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user