only hide button and don't disable clickable area in bbox when on touch device

This commit is contained in:
Til 2026-05-03 08:41:43 +02:00
parent 6f561f6a56
commit 89ffb73d08

View file

@ -725,7 +725,7 @@ window.baguetteBox = (function () {
if (options.buttons === 'auto' && ('ontouchstart' in window || currentGallery.length === 1))
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) {