From eb000b9ee11d2bf17ac3e70b62631c51bb24ee11 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Thu, 17 Dec 2020 02:18:39 +0100
Subject: [PATCH] Turns out the scrolling fix /was/ necessary after all.

---
 rogue_chat.html | 3 +++
 1 file changed, 3 insertions(+)

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() {
-- 
2.30.2