Also let's reset scale every time we close a view.
This commit is contained in:
parent
ba3033c0b5
commit
b1b19c7e54
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user