mirror of
https://github.com/vladmandic/automatic
synced 2026-09-11 07:18:44 +02:00
Disable hold-to-preview
Allows for drag'n'drop of images. Signed-off-by: Jakub Sztandera <kubuxu@protonmail.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user