From: Christian Heller Date: Thu, 17 Dec 2020 01:18:39 +0000 (+0100) Subject: Turns out the scrolling fix /was/ necessary after all. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%7B%7B%20web_path%20%7D%7D/do_todos?a=commitdiff_plain;h=eb000b9ee11d2bf17ac3e70b62631c51bb24ee11;p=plomrogue2 Turns out the scrolling fix /was/ necessary after all. --- diff --git a/rogue_chat.html b/rogue_chat.html index eb23d1c..e2cd53c 100644 --- a/rogue_chat.html +++ b/rogue_chat.html @@ -1768,7 +1768,10 @@ window.setInterval(function() { }, 1000); window.setInterval(function() { if (document.activeElement.tagName.toLowerCase() != 'input') { + const scroll_x = window.scrollX; + const scroll_y = window.scrollY; tui.inputEl.focus(); + window.scrollTo(scroll_x, scroll_y); }; }, 100); document.getElementById("help").onclick = function() {