Fix scrolling calculation on thread view

This commit is contained in:
Bojan Mojsilovic 2024-01-08 14:38:42 +01:00
parent 4fbe3d83ad
commit 6119b47820
1 changed files with 4 additions and 0 deletions

View File

@ -111,6 +111,10 @@ const Thread: Component = () => {
setTimeout(() => {
if (!repliesHolder) return;
if (parentNotes().length === 0) {
return;
}
const rect = pn.getBoundingClientRect();
const vh = window.innerHeight;