mirror of
https://github.com/vladmandic/automatic
synced 2026-08-31 09:31:00 +02:00
Merge branch 'master' of https://github.com/vladmandic/automatic into settings-improvements
This commit is contained in:
@@ -105,8 +105,8 @@ function setupImageForLightbox(e) {
|
||||
var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1
|
||||
var event = isFirefox ? 'mousedown' : 'click'
|
||||
e.addEventListener(event, function (evt) {
|
||||
if(!opts.js_modal_lightbox || evt.button != 0) return;
|
||||
modalZoomSet(gradioApp().getElementById('modalImage'), opts.js_modal_lightbox_initially_zoomed)
|
||||
if (evt.button != 0) return;
|
||||
modalZoomSet(gradioApp().getElementById('modalImage'), true)
|
||||
evt.preventDefault()
|
||||
showModal(evt)
|
||||
}, true);
|
||||
|
||||
Reference in New Issue
Block a user