home
·
contact
·
privacy
projects
/
plomrogue2
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
249d0af
)
Turns out the scrolling fix /was/ necessary after all.
author
Christian Heller
<c.heller@plomlompom.de>
Thu, 17 Dec 2020 01:18:39 +0000
(
02:18
+0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Thu, 17 Dec 2020 01:18:39 +0000
(
02:18
+0100)
rogue_chat.html
patch
|
blob
|
history
diff --git
a/rogue_chat.html
b/rogue_chat.html
index eb23d1cf3bfeb411f60079bcaf78eac35fa0aa8e..e2cd53c43c3333e2d27f45815e124e58c752c170 100644
(file)
--- 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') {
}, 1000);
window.setInterval(function() {
if (document.activeElement.tagName.toLowerCase() != 'input') {
+ const scroll_x = window.scrollX;
+ const scroll_y = window.scrollY;
tui.inputEl.focus();
tui.inputEl.focus();
+ window.scrollTo(scroll_x, scroll_y);
};
}, 100);
document.getElementById("help").onclick = function() {
};
}, 100);
document.getElementById("help").onclick = function() {