mirror of
https://github.com/9001/copyparty.git
synced 2026-06-21 13:42:29 -06:00
only hide button and don't disable clickable area in bbox when on touch device
This commit is contained in:
parent
6f561f6a56
commit
89ffb73d08
|
|
@ -725,7 +725,7 @@ window.baguetteBox = (function () {
|
||||||
if (options.buttons === 'auto' && ('ontouchstart' in window || currentGallery.length === 1))
|
if (options.buttons === 'auto' && ('ontouchstart' in window || currentGallery.length === 1))
|
||||||
options.buttons = false;
|
options.buttons = false;
|
||||||
|
|
||||||
btnPrev.style.display = btnNext.style.display = (options.buttons ? '' : 'none');
|
QS('#bbox-next .btn').style.display = QS('#bbox-prev .btn').style.display = (options.buttons ? '' : 'none');
|
||||||
}
|
}
|
||||||
|
|
||||||
function showOverlay(chosenImageIndex) {
|
function showOverlay(chosenImageIndex) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue