Disable hold-to-preview

Allows for drag'n'drop of images.
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.com>
This commit is contained in:
Jakub Sztandera
2023-07-19 01:43:52 +02:00
parent 3352876521
commit f2a39ffdcf
+1 -1
View File
@@ -91,7 +91,7 @@ function setupImageForLightbox(e) {
e.dataset.modded = true;
e.style.cursor = 'pointer';
e.style.userSelect = 'none';
e.addEventListener('mousedown', (evt) => {
e.addEventListener('click', (evt) => {
if (evt.button !== 0) return;
const initialZoom = (localStorage.getItem('modalZoom') || true) === 'yes';
modalZoomSet(gradioApp().getElementById('modalImage'), initialZoom);