remove _userScrolledAway guard from oldes mode; keep rAF scroll
This commit is contained in:
@@ -1663,7 +1663,6 @@ function scrollToLatest() {
|
|||||||
if (_userScrolledAway) return;
|
if (_userScrolledAway) return;
|
||||||
c.scrollTop = 0;
|
c.scrollTop = 0;
|
||||||
} else {
|
} else {
|
||||||
if (_userScrolledAway) return;
|
|
||||||
requestAnimationFrame(() => {
|
requestAnimationFrame(() => {
|
||||||
const cc = document.getElementById('chatContainer');
|
const cc = document.getElementById('chatContainer');
|
||||||
if (cc) cc.scrollTop = cc.scrollHeight;
|
if (cc) cc.scrollTop = cc.scrollHeight;
|
||||||
|
|||||||
Reference in New Issue
Block a user