From 03caeafc19a0c9a0c48fb667139c0b1726644f40 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Mon, 14 Dec 2020 22:56:23 +0100 Subject: [PATCH] From web client, remove unneeded focus-keeping code. --- rogue_chat.html | 3 --- 1 file changed, 3 deletions(-) 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() { -- 2.30.2