test out with a timer

pull/232/head
Aevann 2024-08-09 19:25:30 +03:00
parent eab576708a
commit af042fa913
1 changed files with 5 additions and 1 deletions

View File

@ -375,6 +375,10 @@ addEventListener("load", () => {
}, {once : true});
visualViewport.addEventListener('resize', () => {
if (scrolled_down())
if (scrolled_down()) {
box.scrollTo(0, box.scrollHeight)
setTimeout(function() {
box.scrollTo(0, box.scrollHeight)
}, 200);
}
});