Reset scrolling when opening pallet dialog

This commit is contained in:
Woody 2023-11-30 19:11:41 +01:00
parent 0ab71badfa
commit 8fc0dda26d
No known key found for this signature in database
GPG Key ID: 9872D7F5072789B2

View File

@ -3058,6 +3058,7 @@ function simplifyUI() {
if (e.target != btn && e.target != div) return;
gId("palw").lastElementChild.classList.toggle("hide");
clean(gId("palw").lastElementChild.firstElementChild.children[1]);
gId("palw").lastElementChild.scrollTop = 0;
};
btn.addEventListener("click", togglePal);
div.addEventListener("click", togglePal);