scrollBy offsetHeight + scrollTop
This commit is contained in:
parent
23c9757fd0
commit
e0ed29b812
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ export function Stream({
|
|||
|
||||
useEffect(() => {
|
||||
const ul: HTMLElement = document.querySelector("ul.stream")!;
|
||||
const top = ul.scrollHeight;
|
||||
const top = ul.offsetHeight + ul.scrollTop;
|
||||
ul.scrollBy({ behavior: "smooth", top });
|
||||
}, [stream.length]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue