From b1b19c7e54940408f21743a16b2fed2043bb453d Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Thu, 9 Sep 2021 20:48:18 +0400 Subject: [PATCH] Also let's reset scale every time we close a view. --- files/static/assets/js/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/files/static/assets/js/main.js b/files/static/assets/js/main.js index a668885..d42d78f 100644 --- a/files/static/assets/js/main.js +++ b/files/static/assets/js/main.js @@ -14,6 +14,7 @@ function mousescroll(e) { document.getElementById("view").addEventListener("click", e => { e.target.firstChild.remove(); e.target.style.visibility = "hidden"; + scale = 1; }); const file_links = Array.from(document.getElementsByTagName('tr')).slice(2).filter((e) => e.lastChild.innerHTML != "DIR").map(v => v.firstChild.firstChild);