From 89ffb73d085a4adc9d5cd5c88243e278aab0ffee Mon Sep 17 00:00:00 2001 From: Til Date: Sun, 3 May 2026 08:41:43 +0200 Subject: [PATCH] only hide button and don't disable clickable area in bbox when on touch device --- copyparty/web/baguettebox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copyparty/web/baguettebox.js b/copyparty/web/baguettebox.js index d7ccd618..8daf7516 100644 --- a/copyparty/web/baguettebox.js +++ b/copyparty/web/baguettebox.js @@ -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) {