fix: hover drives the main preview again when nothing is locked
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.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user