mirror of
https://github.com/wled/WLED.git
synced 2025-07-09 20:06:33 +00:00
Reset scrolling when opening pallet dialog
This commit is contained in:
parent
0ab71badfa
commit
8fc0dda26d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user