From 4aae68d836f6e2c6edf1b85a059ab83c469799eb Mon Sep 17 00:00:00 2001 From: kgva CMS Date: Fri, 14 Aug 2026 23:15:43 +0000 Subject: [PATCH] fix: hover drives the main preview again when nothing is locked MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit the peek column only makes sense as an alternative to disturbing an existing lock — with nothing locked, hover had stopped updating anything at all, leaving whatever was last locked stuck on screen while browsing other rows. now: locked -> hover drives the peek column only; unlocked -> hover drives the main preview directly, same as before locking existed. --- assets/js/filebrowser.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/js/filebrowser.js b/assets/js/filebrowser.js index 1669b82..5c9b23c 100644 --- a/assets/js/filebrowser.js +++ b/assets/js/filebrowser.js @@ -110,7 +110,9 @@ // actually navigates. var isProjectLink = a.hasAttribute("href") && a.hasAttribute("data-img"); a.addEventListener("mouseenter", function () { - if (locked >= 0 && i !== locked) showPeek(a); else hidePeek(); + if (locked < 0) { hidePeek(); render(i); } // nothing locked — hover drives the main preview, like before locking existed + else if (i !== locked) showPeek(a); + else hidePeek(); }); a.addEventListener("click", function (e) { if (isProjectLink) {