prevent highlighting/selecting image

This commit is contained in:
Adam Snodgrass 2022-10-17 05:21:59 -05:00 committed by AUTOMATIC1111
parent ab3f997c0c
commit 43cb1ddad2

View file

@ -116,6 +116,7 @@ function showGalleryImage() {
e.dataset.modded = true;
if(e && e.parentElement.tagName == 'DIV'){
e.style.cursor='pointer'
e.style.userSelect='none'
e.addEventListener('click', function (evt) {
if(!opts.js_modal_lightbox) return;
modalZoomSet(gradioApp().getElementById('modalImage'), opts.js_modal_lightbox_initially_zoomed)