From 3bc678185e4c98a27b426574d0d15e01e36068c9 Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Tue, 19 Sep 2023 18:54:47 -0700 Subject: [PATCH] Tweak de-blur photo logic --- web/static/js/bulma.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/static/js/bulma.js b/web/static/js/bulma.js index c473729..4f13841 100644 --- a/web/static/js/bulma.js +++ b/web/static/js/bulma.js @@ -131,7 +131,11 @@ document.addEventListener('DOMContentLoaded', () => { // Reveal all blurred images on click. (document.querySelectorAll(".blurred-explicit") || []).forEach(node => { node.addEventListener("click", e => { - node.classList.remove("blurred-explicit"); + if (node.classList.contains("blurred-explicit")) { + node.classList.remove("blurred-explicit"); + e.preventDefault(); + e.stopPropagation(); + } }); }); });