home · contact · privacy
From web client, remove unneeded focus-keeping code.
authorChristian Heller <c.heller@plomlompom.de>
Mon, 14 Dec 2020 21:56:23 +0000 (22:56 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 14 Dec 2020 21:56:23 +0000 (22:56 +0100)
rogue_chat.html

index dfb10fe13c2dbe19491faf121a59405857308657..23626cf7503a91a5aeaa527b39f48cae1adfa698 100644 (file)
@@ -1752,10 +1752,7 @@ 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() {