mirror of
https://github.com/openvinotoolkit/stable-diffusion-webui.git
synced 2024-12-15 07:03:06 +03:00
Merge pull request #6635 from demiurge-ash/patch-1
Fix keyboard navigation in modal image viewer
This commit is contained in:
commit
45a8b758a7
@ -151,6 +151,7 @@ function showGalleryImage() {
|
|||||||
e.addEventListener('mousedown', function (evt) {
|
e.addEventListener('mousedown', function (evt) {
|
||||||
if(!opts.js_modal_lightbox || evt.button != 0) return;
|
if(!opts.js_modal_lightbox || evt.button != 0) return;
|
||||||
modalZoomSet(gradioApp().getElementById('modalImage'), opts.js_modal_lightbox_initially_zoomed)
|
modalZoomSet(gradioApp().getElementById('modalImage'), opts.js_modal_lightbox_initially_zoomed)
|
||||||
|
evt.preventDefault()
|
||||||
showModal(evt)
|
showModal(evt)
|
||||||
}, true);
|
}, true);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user