Skip to content

Commit 1c7db25

Browse files
committed
fix slight bug
1 parent 1a898d6 commit 1c7db25

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/webpage/infiniteScroller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class InfiniteScroller {
111111
let height = 0;
112112
new ResizeObserver((e) => {
113113
const nh = e[0].target.getBoundingClientRect().height;
114-
root.scrollTop += height - nh;
114+
if (height) root.scrollTop += height - nh;
115115
height = nh;
116116
}).observe(root);
117117
}

0 commit comments

Comments
 (0)