We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52ebdc2 commit 4497603Copy full SHA for 4497603
react_main/src/pages/Game/Game.jsx
@@ -1494,15 +1494,10 @@ export function TextMeetingLayout() {
1494
}, []);
1495
1496
function doAutoScroll() {
1497
- const container = speechDisplayRef.current;
+ const container = speechDisplayRef.current;
1498
if (autoScroll && container) {
1499
requestAnimationFrame(() => {
1500
- if (container) {
1501
- const lastChild = container.lastElementChild;
1502
- if (lastChild && typeof lastChild.scrollIntoView === "function") {
1503
- lastChild.scrollIntoView();
1504
- }
1505
+ container.scrollTo(0, container.scrollHeight);
1506
});
1507
}
1508
0 commit comments