From: Christian Heller Date: Mon, 14 Dec 2020 21:56:23 +0000 (+0100) Subject: From web client, remove unneeded focus-keeping code. X-Git-Url: https://plomlompom.com/repos/?a=commitdiff_plain;ds=sidebyside;h=03caeafc19a0c9a0c48fb667139c0b1726644f40;p=plomrogue2 From web client, remove unneeded focus-keeping code. --- diff --git a/rogue_chat.html b/rogue_chat.html index dfb10fe..23626cf 100644 --- a/rogue_chat.html +++ b/rogue_chat.html @@ -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() {