Also let's reset scale every time we close a view.

This commit is contained in:
Alexander Andreev 2021-09-09 20:48:18 +04:00
parent ba3033c0b5
commit b1b19c7e54
Signed by: Arav
GPG Key ID: 610DF2574456329F

View File

@ -14,6 +14,7 @@ function mousescroll(e) {
document.getElementById("view").addEventListener("click", e => { document.getElementById("view").addEventListener("click", e => {
e.target.firstChild.remove(); e.target.firstChild.remove();
e.target.style.visibility = "hidden"; 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); const file_links = Array.from(document.getElementsByTagName('tr')).slice(2).filter((e) => e.lastChild.innerHTML != "DIR").map(v => v.firstChild.firstChild);